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.



6
7
8
# File 'lib/levelup/endpoints/app_locations.rb', line 6

def initialize(id)
  self.id = id
end

Instance Method Details

#listObject

Provides a list of locations controlled by this app. This list is paginated.



11
12
13
14
# File 'lib/levelup/endpoints/app_locations.rb', line 11

def list
  Requests::ListAppLocations.new.
    send_to_api(:get, endpoint_path(:v14))
end