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.
395 396 397 398 |
# File 'lib/seatsio/domain.rb', line 395 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.
393 394 395 |
# File 'lib/seatsio/domain.rb', line 393 def usage_by_chart @usage_by_chart end |
#workspace ⇒ Object (readonly)
Returns the value of attribute workspace.
393 394 395 |
# File 'lib/seatsio/domain.rb', line 393 def workspace @workspace end |