Class: Seatsio::UsageSummaryForMonth
- Inherits:
-
Object
- Object
- Seatsio::UsageSummaryForMonth
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#month ⇒ Object
readonly
Returns the value of attribute month.
-
#num_used_objects ⇒ Object
readonly
Returns the value of attribute num_used_objects.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageSummaryForMonth
constructor
A new instance of UsageSummaryForMonth.
Constructor Details
#initialize(data) ⇒ UsageSummaryForMonth
Returns a new instance of UsageSummaryForMonth.
450 451 452 453 |
# File 'lib/seatsio/domain.rb', line 450 def initialize(data) @month = Month.from_json(data['month']) @num_used_objects = data['numUsedObjects'] end |
Instance Attribute Details
#month ⇒ Object (readonly)
Returns the value of attribute month.
448 449 450 |
# File 'lib/seatsio/domain.rb', line 448 def month @month end |
#num_used_objects ⇒ Object (readonly)
Returns the value of attribute num_used_objects.
448 449 450 |
# File 'lib/seatsio/domain.rb', line 448 def num_used_objects @num_used_objects end |