Class: Motor::ApiConfig

Inherits:
ApplicationRecord show all
Defined in:
app/models/motor/api_config.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

audited

Instance Method Details

#headersObject



17
18
19
20
21
# File 'app/models/motor/api_config.rb', line 17

def headers
  credentials.fetch(:headers, []).each_with_object({}) do |item, acc|
    acc[item[:key]] = item[:value]
  end
end