Class: Forecasting::Models::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/forecasting/models/account.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #forecast_client

Instance Method Summary collapse

Methods inherited from Base

attributed, #initialize, modeled, #to_hash

Constructor Details

This class inherits a constructor from Forecasting::Models::Base

Instance Method Details

#color_labelsObject



13
14
15
16
17
# File 'lib/forecasting/models/account.rb', line 13

def color_labels
  attributes["color_labels"].map do |entry|
    ColorLabel.new(entry)
  end
end