Class: Seatsio::UsageForObjectV2
- Inherits:
-
Object
- Object
- Seatsio::UsageForObjectV2
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#num_used_objects ⇒ Object
readonly
Returns the value of attribute num_used_objects.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#usage_by_reason ⇒ Object
readonly
Returns the value of attribute usage_by_reason.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageForObjectV2
constructor
A new instance of UsageForObjectV2.
Constructor Details
#initialize(data) ⇒ UsageForObjectV2
Returns a new instance of UsageForObjectV2.
512 513 514 515 516 |
# File 'lib/seatsio/domain.rb', line 512 def initialize(data) @object = data['object'] @num_used_objects = data['numUsedObjects'] @usage_by_reason = data['usageByReason'] end |
Instance Attribute Details
#num_used_objects ⇒ Object (readonly)
Returns the value of attribute num_used_objects.
510 511 512 |
# File 'lib/seatsio/domain.rb', line 510 def num_used_objects @num_used_objects end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
510 511 512 |
# File 'lib/seatsio/domain.rb', line 510 def object @object end |
#usage_by_reason ⇒ Object (readonly)
Returns the value of attribute usage_by_reason.
510 511 512 |
# File 'lib/seatsio/domain.rb', line 510 def usage_by_reason @usage_by_reason end |