Class: Seatsio::BestAvailableObjects

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ BestAvailableObjects

Returns a new instance of BestAvailableObjects.



257
258
259
260
261
# File 'lib/seatsio/domain.rb', line 257

def initialize(data)
  @next_to_each_other = data['nextToEachOther']
  @objects = data['objects']
  @object_details = Seatsio.to_object_details(data['objectDetails'])
end

Instance Attribute Details

#next_to_each_otherObject (readonly)

Returns the value of attribute next_to_each_other.



255
256
257
# File 'lib/seatsio/domain.rb', line 255

def next_to_each_other
  @next_to_each_other
end

#object_detailsObject (readonly)

Returns the value of attribute object_details.



255
256
257
# File 'lib/seatsio/domain.rb', line 255

def object_details
  @object_details
end

#objectsObject (readonly)

Returns the value of attribute objects.



255
256
257
# File 'lib/seatsio/domain.rb', line 255

def objects
  @objects
end