Class: Seatsio::Domain::ChartCategories
- Inherits:
-
Object
- Object
- Seatsio::Domain::ChartCategories
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
-
#max_category_key ⇒ Object
Returns the value of attribute max_category_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ ChartCategories
constructor
A new instance of ChartCategories.
Constructor Details
#initialize(data) ⇒ ChartCategories
Returns a new instance of ChartCategories.
8 9 10 11 12 13 14 15 16 |
# File 'lib/seatsio/domain.rb', line 8 def initialize(data) if data @list = data['list'] @max_category_key = data['maxCategoryKey'] else @list = [] @max_category_key = '' end end |
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
6 7 8 |
# File 'lib/seatsio/domain.rb', line 6 def list @list end |
#max_category_key ⇒ Object
Returns the value of attribute max_category_key.
6 7 8 |
# File 'lib/seatsio/domain.rb', line 6 def max_category_key @max_category_key end |