Class: Levelup::Endpoints::SpecificLocation
- 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
- #credit ⇒ Object
-
#initialize(location_id) ⇒ SpecificLocation
constructor
A new instance of SpecificLocation.
- #merchant_funded_credit ⇒ Object
- #orders ⇒ Object
Constructor Details
#initialize(location_id) ⇒ SpecificLocation
Returns a new instance of 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
#credit ⇒ Object
12 13 14 |
# File 'lib/levelup/endpoints/specific_location.rb', line 12 def credit LocationCredit.new(id) end |
#merchant_funded_credit ⇒ Object
16 17 18 |
# File 'lib/levelup/endpoints/specific_location.rb', line 16 def merchant_funded_credit LocationMerchantFundedCredit.new(id) end |
#orders ⇒ Object
20 21 22 |
# File 'lib/levelup/endpoints/specific_location.rb', line 20 def orders LocationOrders.new(id) end |