Class: Seatsio::UsageDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_chartObject (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

#workspaceObject (readonly)

Returns the value of attribute workspace.



506
507
508
# File 'lib/seatsio/domain.rb', line 506

def workspace
  @workspace
end