Class: Motor::ApiConfig
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Motor::ApiConfig
- Defined in:
- app/models/motor/api_config.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
Instance Method Details
#headers ⇒ Object
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 |