Class: Seatsio::ChartObjectInfo
- Inherits:
-
Object
- Object
- Seatsio::ChartObjectInfo
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#book_as_a_whole ⇒ Object
readonly
Returns the value of attribute book_as_a_whole.
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#category_key ⇒ Object
readonly
Returns the value of attribute category_key.
-
#category_label ⇒ Object
readonly
Returns the value of attribute category_label.
-
#distance_to_focal_point ⇒ Object
readonly
Returns the value of attribute distance_to_focal_point.
-
#entrance ⇒ Object
readonly
Returns the value of attribute entrance.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#left_neighbour ⇒ Object
readonly
Returns the value of attribute left_neighbour.
-
#num_seats ⇒ Object
readonly
Returns the value of attribute num_seats.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
-
#right_neighbour ⇒ Object
readonly
Returns the value of attribute right_neighbour.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
Instance Method Summary collapse
-
#initialize(data) ⇒ ChartObjectInfo
constructor
A new instance of ChartObjectInfo.
Constructor Details
#initialize(data) ⇒ ChartObjectInfo
Returns a new instance of ChartObjectInfo.
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 |
# File 'lib/seatsio/domain.rb', line 321 def initialize(data) @label = data['label'] @labels = data['labels'] @ids = data['ids'] @category_label = data['categoryLabel'] @category_key = data['categoryKey'] @section = data['section'] @entrance = data['entrance'] @capacity = data['capacity'] @object_type = data['objectType'] @left_neighbour = data['leftNeighbour'] @right_neighbour = data['rightNeighbour'] @book_as_a_whole = data['bookAsAWhole'] @distance_to_focal_point = data['distanceToFocalPoint'] @num_seats = data['numSeats'] end |
Instance Attribute Details
#book_as_a_whole ⇒ Object (readonly)
Returns the value of attribute book_as_a_whole.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def book_as_a_whole @book_as_a_whole end |
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def capacity @capacity end |
#category_key ⇒ Object (readonly)
Returns the value of attribute category_key.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def category_key @category_key end |
#category_label ⇒ Object (readonly)
Returns the value of attribute category_label.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def category_label @category_label end |
#distance_to_focal_point ⇒ Object (readonly)
Returns the value of attribute distance_to_focal_point.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def distance_to_focal_point @distance_to_focal_point end |
#entrance ⇒ Object (readonly)
Returns the value of attribute entrance.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def entrance @entrance end |
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def ids @ids end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def label @label end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def labels @labels end |
#left_neighbour ⇒ Object (readonly)
Returns the value of attribute left_neighbour.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def left_neighbour @left_neighbour end |
#num_seats ⇒ Object (readonly)
Returns the value of attribute num_seats.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def num_seats @num_seats end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def object_type @object_type end |
#right_neighbour ⇒ Object (readonly)
Returns the value of attribute right_neighbour.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def right_neighbour @right_neighbour end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
318 319 320 |
# File 'lib/seatsio/domain.rb', line 318 def section @section end |