Module: SolidusShipwire::Response
- Defined in:
- lib/solidus_shipwire/response_decorator.rb
Instance Method Summary collapse
Instance Method Details
#next? ⇒ Boolean
8 9 10 |
# File 'lib/solidus_shipwire/response_decorator.rb', line 8 def next? body['resource']['next'].present? end |
#to_sku_id_hashmap ⇒ Object
2 3 4 5 6 |
# File 'lib/solidus_shipwire/response_decorator.rb', line 2 def to_sku_id_hashmap Hash[body['resource']['items'].map do |v| [v['resource']['sku'], v['resource']['id']] end] end |