class Levelup::Endpoints::LocationCredit
The endpoint holding all functions relating to available credit at locations.
Attributes
id[RW]
Public Class Methods
new(location_id)
click to toggle source
# File lib/levelup/endpoints/location_credit.rb, line 5 def initialize(location_id) self.id = location_id end
Public Instance Methods
get(user_access_token)
click to toggle source
# File lib/levelup/endpoints/location_credit.rb, line 9 def get(user_access_token) Requests::GetLocationCredit.new(user_access_token: user_access_token). send_to_api :get, endpoint_path end
Private Instance Methods
path()
click to toggle source
# File lib/levelup/endpoints/location_credit.rb, line 18 def path "locations/#{id}/credit" end