Class: Lce::Offer
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Lce::Offer
- Defined in:
- lib/lce/offer.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#available_delivery_locations(params) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/lce/offer.rb', line 17 def available_delivery_locations(params) return [] unless product.preset_delivery_location == true Lce.client.get('offers', id, 'available_delivery_locations', nil , {location: params }).map! do |l| Hashie::Mash.new(l) end end |