Exception: Hitch::ClientAuthentication::Invalid

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/hitch/client_authentication.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oauth_code, message, http_status: :bad_request) ⇒ Invalid

Returns a new instance of Invalid.



18
19
20
21
22
# File 'app/models/hitch/client_authentication.rb', line 18

def initialize(oauth_code, message, http_status: :bad_request)
  @oauth_code = oauth_code
  @http_status = http_status
  super(message)
end

Instance Attribute Details

#http_statusObject (readonly)

Returns the value of attribute http_status.



16
17
18
# File 'app/models/hitch/client_authentication.rb', line 16

def http_status
  @http_status
end

#oauth_codeObject (readonly)

Returns the value of attribute oauth_code.



16
17
18
# File 'app/models/hitch/client_authentication.rb', line 16

def oauth_code
  @oauth_code
end