Class: Rapa::Queries::SearchItemsQuery

Inherits:
BaseQuery
  • Object
show all
Defined in:
lib/rapa/queries/search_items_query.rb

Constant Summary collapse

SEARCH_INDEX_DEFAULT =
"All"
OPERATION =
"ItemSearch"

Constants inherited from BaseQuery

BaseQuery::SERVICE, BaseQuery::VERSION

Instance Method Summary collapse

Methods inherited from BaseQuery

#AWSAccessKeyId, #AssociateTag, #RelatedItemPage, #RelationshipType, #ResponseGroup, #Service, #Timestamp, #Version, inherited, #initialize, #inspect, property, #to_hash, #to_s

Constructor Details

This class inherits a constructor from Rapa::Queries::BaseQuery

Instance Method Details

#BrowseNodeString?

Returns:

  • (String, nil)


14
15
16
17
18
# File 'lib/rapa/queries/search_items_query.rb', line 14

def BrowseNode
  if options[:browse_node_id]
    options[:browse_node_id].to_s
  end
end

#ItemPageString?

Returns:

  • (String, nil)


21
22
23
24
25
# File 'lib/rapa/queries/search_items_query.rb', line 21

def ItemPage
  if options[:item_page]
    options[:item_page].to_s
  end
end

#KeywordsString?

Returns:

  • (String, nil)


28
29
30
31
32
# File 'lib/rapa/queries/search_items_query.rb', line 28

def Keywords
  if options[:keywords] && options[:keywords].any?
    options[:keywords].join(",")
  end
end

#OperationObject

Note:

Override



35
36
37
# File 'lib/rapa/queries/search_items_query.rb', line 35

def Operation
  OPERATION
end

#PowerString?

Returns:

  • (String, nil)


40
41
42
# File 'lib/rapa/queries/search_items_query.rb', line 40

def Power
  options[:power]
end

#SearchIndexString

Returns:

  • (String)


45
46
47
# File 'lib/rapa/queries/search_items_query.rb', line 45

def SearchIndex
  options[:search_index] || SEARCH_INDEX_DEFAULT
end