Class: HermesAPI::OAuth

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/hermes_api/resources/o_auth.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, persisted = false) ⇒ OAuth

Returns a new instance of OAuth.



7
8
9
10
11
12
13
# File 'lib/hermes_api/resources/o_auth.rb', line 7

def initialize(attributes = {}, persisted = false)
  attributes = {
    grant_type: "client_credentials",
    **attributes
  }
  super
end