class Levelup::Endpoints::SpecificLocation
The endpoint holding all functions relating to a specific location. This is a v14 endpoint and should not be expected to remain functional indefinitely.
Attributes
id[RW]
Public Class Methods
new(location_id)
click to toggle source
# File lib/levelup/endpoints/specific_location.rb, line 8 def initialize(location_id) self.id = location_id end
Public Instance Methods
credit()
click to toggle source
# File lib/levelup/endpoints/specific_location.rb, line 12 def credit LocationCredit.new(id) end
merchant_funded_credit()
click to toggle source
# File lib/levelup/endpoints/specific_location.rb, line 16 def merchant_funded_credit LocationMerchantFundedCredit.new(id) end
orders()
click to toggle source
# File lib/levelup/endpoints/specific_location.rb, line 20 def orders LocationOrders.new(id) end
Private Instance Methods
path()
click to toggle source
# File lib/levelup/endpoints/specific_location.rb, line 28 def path "locations/#{id}" end