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.
498 499 500 501 |
# File 'lib/seatsio/domain.rb', line 498 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.
496 497 498 |
# File 'lib/seatsio/domain.rb', line 496 def month @month end |
#num_used_objects ⇒ Object (readonly)
Returns the value of attribute num_used_objects.
496 497 498 |
# File 'lib/seatsio/domain.rb', line 496 def num_used_objects @num_used_objects end |