Class: Seatsio::Domain::BestAvailableObjects
- Inherits:
-
Object
- Object
- Seatsio::Domain::BestAvailableObjects
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#next_to_each_other ⇒ Object
readonly
Returns the value of attribute next_to_each_other.
-
#object_details ⇒ Object
readonly
Returns the value of attribute object_details.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
-
#initialize(data) ⇒ BestAvailableObjects
constructor
A new instance of BestAvailableObjects.
Constructor Details
#initialize(data) ⇒ BestAvailableObjects
Returns a new instance of BestAvailableObjects.
204 205 206 207 208 |
# File 'lib/seatsio/domain.rb', line 204 def initialize(data) @next_to_each_other = data['nextToEachOther'] @objects = data['objects'] @object_details = Seatsio::Domain.to_object_details(data['objectDetails']) end |
Instance Attribute Details
#next_to_each_other ⇒ Object (readonly)
Returns the value of attribute next_to_each_other.
202 203 204 |
# File 'lib/seatsio/domain.rb', line 202 def next_to_each_other @next_to_each_other end |
#object_details ⇒ Object (readonly)
Returns the value of attribute object_details.
202 203 204 |
# File 'lib/seatsio/domain.rb', line 202 def object_details @object_details end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
202 203 204 |
# File 'lib/seatsio/domain.rb', line 202 def objects @objects end |