Class: Levelup::Endpoints::SpecificLocation

Inherits:
Base
  • Object
show all
Defined in:
lib/levelup/endpoints/specific_location.rb

Overview

The endpoint holding all functions relating to a specific location. This is a v14 endpoint and should not be expected to remain functional indefinitely.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location_id) ⇒ SpecificLocation

Returns a new instance of SpecificLocation.



9
10
11
# File 'lib/levelup/endpoints/specific_location.rb', line 9

def initialize(location_id)
  @id = location_id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/levelup/endpoints/specific_location.rb', line 7

def id
  @id
end

Instance Method Details

#ordersObject



13
14
15
# File 'lib/levelup/endpoints/specific_location.rb', line 13

def orders
  LocationOrders.new(id)
end