Method: Forecasting::Client#roles

Defined in:
lib/forecasting/client.rb

#roles(opts = {}) ⇒ Array<Forecasting::Models::Role>

Returns:



133
134
135
136
137
# File 'lib/forecasting/client.rb', line 133

def roles(opts = {})
  get("roles", opts)["roles"].map do |entry|
    Forecasting::Models::Role.new(entry, forecast_client: self)
  end
end