Class: Levelup::Endpoints::SpecificMerchant

Inherits:
Base
  • Object
show all
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

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

#locationsObject



10
11
12
# File 'lib/levelup/endpoints/specific_merchant.rb', line 10

def locations
  MerchantLocations.new(id)
end

#ordersObject



14
15
16
# File 'lib/levelup/endpoints/specific_merchant.rb', line 14

def orders
  MerchantOrders.new(id)
end