Class: RecombeeApiClient::DeleteManualReqlSegment

Inherits:
ApiRequest
  • Object
show all
Defined in:
lib/recombee_api_client/api/delete_manual_reql_segment.rb

Overview

Delete a Segment from a Manual ReQL Segmentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashNormalizer

#camelize, #normalize_optional

Constructor Details

#initialize(segmentation_id, segment_id) ⇒ DeleteManualReqlSegment

  • *Required arguments*

    • segmentation_id -> ID of the Segmentation from which the Segment should be deleted

    • segment_id -> ID of the Segment that should be deleted



22
23
24
25
26
27
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 22

def initialize(segmentation_id, segment_id)
  @segmentation_id = segmentation_id
  @segment_id = segment_id
  @timeout = 10000
  @ensure_https = false
end

Instance Attribute Details

#ensure_httpsObject

Returns the value of attribute ensure_https.



15
16
17
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 15

def ensure_https
  @ensure_https
end

#segment_idObject (readonly)

Returns the value of attribute segment_id.



13
14
15
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 13

def segment_id
  @segment_id
end

#segmentation_idObject (readonly)

Returns the value of attribute segmentation_id.



13
14
15
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 13

def segmentation_id
  @segmentation_id
end

#timeoutObject

Returns the value of attribute timeout.



14
15
16
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 14

def timeout
  @timeout
end

Instance Method Details

#body_parametersObject

Values of body parameters as a Hash



35
36
37
38
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 35

def body_parameters
  p = Hash.new
  p
end

#methodObject

HTTP method



30
31
32
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 30

def method
  :delete
end

#pathObject

Relative path to the endpoint



48
49
50
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 48

def path
  "/{databaseId}/segmentations/manual-reql/#{@segmentation_id}/segments/#{@segment_id}"
end

#query_parametersObject

Values of query parameters as a Hash. name of parameter => value of the parameter



42
43
44
45
# File 'lib/recombee_api_client/api/delete_manual_reql_segment.rb', line 42

def query_parameters
  params = {}
  params
end