Class: Seatsio::ChartReportItem
- Inherits:
-
Object
- Object
- Seatsio::ChartReportItem
- 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.
-
#entrance ⇒ Object
readonly
Returns the value of attribute entrance.
-
#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.
-
#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) ⇒ ChartReportItem
constructor
A new instance of ChartReportItem.
Constructor Details
#initialize(data) ⇒ ChartReportItem
Returns a new instance of ChartReportItem.
269 270 271 272 273 274 275 276 277 278 279 280 281 |
# File 'lib/seatsio/domain.rb', line 269 def initialize(data) @label = data['label'] @labels = data['labels'] @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'] end |
Instance Attribute Details
#book_as_a_whole ⇒ Object (readonly)
Returns the value of attribute book_as_a_whole.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def book_as_a_whole @book_as_a_whole end |
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def capacity @capacity end |
#category_key ⇒ Object (readonly)
Returns the value of attribute category_key.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def category_key @category_key end |
#category_label ⇒ Object (readonly)
Returns the value of attribute category_label.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def category_label @category_label end |
#entrance ⇒ Object (readonly)
Returns the value of attribute entrance.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def entrance @entrance end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def label @label end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def labels @labels end |
#left_neighbour ⇒ Object (readonly)
Returns the value of attribute left_neighbour.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def left_neighbour @left_neighbour end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def object_type @object_type end |
#right_neighbour ⇒ Object (readonly)
Returns the value of attribute right_neighbour.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def right_neighbour @right_neighbour end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
266 267 268 |
# File 'lib/seatsio/domain.rb', line 266 def section @section end |