Class: BestbuyApi::Params
- Inherits:
-
Object
- Object
- BestbuyApi::Params
- Defined in:
- lib/bestbuy_api/params.rb
Instance Method Summary collapse
-
#initialize(criteria, attributes) ⇒ Params
constructor
A new instance of Params.
- #structure ⇒ Object
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
#structure ⇒ Object
8 9 10 |
# File 'lib/bestbuy_api/params.rb', line 8 def structure { slug: build_filters, query: } end |