Class: Seatsio::UsageSummaryForMonth

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#monthObject (readonly)

Returns the value of attribute month.



496
497
498
# File 'lib/seatsio/domain.rb', line 496

def month
  @month
end

#num_used_objectsObject (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