Class: Levelup::Endpoints::LocationCredit
- Defined in:
- lib/levelup/endpoints/location_credit.rb
Overview
The endpoint holding all functions relating to available credit at locations.
Instance Method Summary collapse
- #get(user_access_token) ⇒ Object
-
#initialize(location_id) ⇒ LocationCredit
constructor
A new instance of LocationCredit.
Constructor Details
#initialize(location_id) ⇒ LocationCredit
Returns a new instance of LocationCredit.
5 6 7 |
# File 'lib/levelup/endpoints/location_credit.rb', line 5 def initialize(location_id) self.id = location_id end |
Instance Method Details
#get(user_access_token) ⇒ Object
9 10 11 12 |
# 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 |