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



22
23
24
25
26
# File 'app/models/motor/api_config.rb', line 22

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