Class: BestbuyApi::Params

Inherits:
Object
  • Object
show all
Defined in:
lib/bestbuy_api/params.rb

Instance Method Summary collapse

Constructor Details

#initialize(criteria, attributes) ⇒ Params

Returns a new instance of Params.



3
4
5
6
# File 'lib/bestbuy_api/params.rb', line 3

def initialize(criteria, attributes)
  @criteria = criteria
  @attributes = attributes
end

Instance Method Details

#structureObject



8
9
10
# File 'lib/bestbuy_api/params.rb', line 8

def structure
  { slug: build_filters, query: build_response_options }
end