Exception: Hitch::ClientAuthentication::Invalid
- Inherits:
-
StandardError
- Object
- StandardError
- Hitch::ClientAuthentication::Invalid
- Defined in:
- app/models/hitch/client_authentication.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#oauth_code ⇒ Object
readonly
Returns the value of attribute oauth_code.
Instance Method Summary collapse
-
#initialize(oauth_code, message, http_status: :bad_request) ⇒ Invalid
constructor
A new instance of Invalid.
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, , http_status: :bad_request) @oauth_code = oauth_code @http_status = http_status super() end |
Instance Attribute Details
#http_status ⇒ Object (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_code ⇒ Object (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 |