Class: Seatsio::UsageDetails
- Inherits:
-
Object
- Object
- Seatsio::UsageDetails
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#usage_by_chart ⇒ Object
readonly
Returns the value of attribute usage_by_chart.
-
#workspace ⇒ Object
readonly
Returns the value of attribute workspace.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageDetails
constructor
A new instance of UsageDetails.
Constructor Details
#initialize(data) ⇒ UsageDetails
Returns a new instance of UsageDetails.
508 509 510 511 |
# File 'lib/seatsio/domain.rb', line 508 def initialize(data) @workspace = data['workspace'] @usage_by_chart = data['usageByChart'].map { |usage| UsageByChart.new(usage) } end |
Instance Attribute Details
#usage_by_chart ⇒ Object (readonly)
Returns the value of attribute usage_by_chart.
506 507 508 |
# File 'lib/seatsio/domain.rb', line 506 def usage_by_chart @usage_by_chart end |
#workspace ⇒ Object (readonly)
Returns the value of attribute workspace.
506 507 508 |
# File 'lib/seatsio/domain.rb', line 506 def workspace @workspace end |