Class: Seatsio::UsageChart
- Inherits:
-
Object
- Object
- Seatsio::UsageChart
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageChart
constructor
A new instance of UsageChart.
Constructor Details
#initialize(data) ⇒ UsageChart
Returns a new instance of UsageChart.
528 529 530 531 |
# File 'lib/seatsio/domain.rb', line 528 def initialize(data) @name = data['name'] @key = data['key'] end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
526 527 528 |
# File 'lib/seatsio/domain.rb', line 526 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
526 527 528 |
# File 'lib/seatsio/domain.rb', line 526 def name @name end |