Class: Levelup::Endpoints::SpecificMerchant
- Defined in:
- lib/levelup/endpoints/specific_merchant.rb
Overview
The endpoint holding all functions relating to a single merchant. This is a v14 endpoint and should not be expected to remain functional indefinitely.
Instance Method Summary collapse
-
#initialize(merchant_id) ⇒ SpecificMerchant
constructor
A new instance of SpecificMerchant.
- #locations ⇒ Object
- #orders ⇒ Object
Constructor Details
#initialize(merchant_id) ⇒ SpecificMerchant
Returns a new instance of SpecificMerchant.
6 7 8 |
# File 'lib/levelup/endpoints/specific_merchant.rb', line 6 def initialize(merchant_id) self.id = merchant_id end |
Instance Method Details
#locations ⇒ Object
10 11 12 |
# File 'lib/levelup/endpoints/specific_merchant.rb', line 10 def locations MerchantLocations.new(id) end |
#orders ⇒ Object
14 15 16 |
# File 'lib/levelup/endpoints/specific_merchant.rb', line 14 def orders MerchantOrders.new(id) end |