class Levelup::Endpoints::SpecificMerchant

The endpoint holding all functions relating to a single merchant. This is a v14 endpoint and should not be expected to remain functional indefinitely.

Attributes

id[RW]

Public Class Methods

new(merchant_id) click to toggle source
# File lib/levelup/endpoints/specific_merchant.rb, line 6
def initialize(merchant_id)
  self.id = merchant_id
end

Public Instance Methods

locations() click to toggle source
# File lib/levelup/endpoints/specific_merchant.rb, line 10
def locations
  MerchantLocations.new(id)
end
orders() click to toggle source
# File lib/levelup/endpoints/specific_merchant.rb, line 14
def orders
  MerchantOrders.new(id)
end

Private Instance Methods

path() click to toggle source
# File lib/levelup/endpoints/specific_merchant.rb, line 22
def path
  "merchants/#{id}"
end