Class: Seatsio::Domain::ChartReportItem
- Inherits:
-
Object
- Object
- Seatsio::Domain::ChartReportItem
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#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.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
-
#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.
215 216 217 218 219 220 221 222 223 224 |
# File 'lib/seatsio/domain.rb', line 215 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'] end |
Instance Attribute Details
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def capacity @capacity end |
#category_key ⇒ Object (readonly)
Returns the value of attribute category_key.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def category_key @category_key end |
#category_label ⇒ Object (readonly)
Returns the value of attribute category_label.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def category_label @category_label end |
#entrance ⇒ Object (readonly)
Returns the value of attribute entrance.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def entrance @entrance end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def label @label end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def labels @labels end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def object_type @object_type end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def section @section end |