Module: MyVR::API::Amenities

Included in:
Client
Defined in:
lib/myvr/api/amenities.rb

Instance Method Summary collapse

Instance Method Details

#amenitiesObject



11
12
13
# File 'lib/myvr/api/amenities.rb', line 11

def amenities
  @amenities ||= amenities!
end

#amenities!Object



4
5
6
7
8
9
# File 'lib/myvr/api/amenities.rb', line 4

def amenities!
  data = get_objects("/v1/amenities/")
  data.map do |fee|
    MyVR::Amenity.new(fee)
  end
end

#fee(id) ⇒ Object



15
16
17
18
# File 'lib/myvr/api/amenities.rb', line 15

def fee(id)
  data = get_object("/v1/amenities/#{ id }/")
  MyVR::Amenity.new(data)
end