Class: Levelup::Endpoints::SpecificLocation

Inherits:
Base
  • Object
show all
Defined in:
lib/levelup/endpoints/specific_location.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(location_id) ⇒ SpecificLocation


8
9
10
# File 'lib/levelup/endpoints/specific_location.rb', line 8

def initialize(location_id)
  self.id = location_id
end

Instance Method Details

#creditObject


12
13
14
# File 'lib/levelup/endpoints/specific_location.rb', line 12

def credit
  LocationCredit.new(id)
end

#merchant_funded_creditObject


16
17
18
# File 'lib/levelup/endpoints/specific_location.rb', line 16

def merchant_funded_credit
  LocationMerchantFundedCredit.new(id)
end

#ordersObject


20
21
22
# File 'lib/levelup/endpoints/specific_location.rb', line 20

def orders
  LocationOrders.new(id)
end