Class: Levelup::Endpoints::AppLocations
- Defined in:
- lib/levelup/endpoints/app_locations.rb
Overview
The endpoint holding all functions relating to a specific app’s locations. This endpoint is a v14 endpoint and should not be expected to remain accessible indefinitely.
Instance Method Summary collapse
-
#initialize(id) ⇒ AppLocations
constructor
A new instance of AppLocations.
-
#list ⇒ Object
Provides a list of locations controlled by this app.
Constructor Details
#initialize(id) ⇒ AppLocations
Returns a new instance of AppLocations.
7 8 9 |
# File 'lib/levelup/endpoints/app_locations.rb', line 7 def initialize(id) self.id = id end |
Instance Method Details
#list ⇒ Object
Provides a list of locations controlled by this app. This list is paginated.
13 14 15 16 |
# File 'lib/levelup/endpoints/app_locations.rb', line 13 def list request = Requests::ListAppLocations.new request.send_to_api(:get, endpoint_path(:v14)) end |