Class: Levelup::Endpoints::AppLocations

Inherits:
Base
  • Object
show all
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

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

#listObject

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