Class: Seatsio::UsageForObjectV2

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UsageForObjectV2

Returns a new instance of UsageForObjectV2.



562
563
564
565
566
# File 'lib/seatsio/domain.rb', line 562

def initialize(data)
  @object = data['object']
  @num_used_objects = data['numUsedObjects']
  @usage_by_reason = data['usageByReason']
end

Instance Attribute Details

#num_used_objectsObject (readonly)

Returns the value of attribute num_used_objects.



560
561
562
# File 'lib/seatsio/domain.rb', line 560

def num_used_objects
  @num_used_objects
end

#objectObject (readonly)

Returns the value of attribute object.



560
561
562
# File 'lib/seatsio/domain.rb', line 560

def object
  @object
end

#usage_by_reasonObject (readonly)

Returns the value of attribute usage_by_reason.



560
561
562
# File 'lib/seatsio/domain.rb', line 560

def usage_by_reason
  @usage_by_reason
end