Class: Alula::Oauth::Error
Overview
Simple representation of an auth error
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_description ⇒ Object
readonly
Returns the value of attribute error_description.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(attributes) ⇒ Error
Returns a new instance of Error.
139 140 141 142 143 144 |
# File 'lib/alula/oauth.rb', line 139 def initialize(attributes) @raw_response = attributes @code = attributes['code'] @error = attributes['error'] @error_description = attributes['error_description'] || attributes['message'] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
137 138 139 |
# File 'lib/alula/oauth.rb', line 137 def code @code end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
137 138 139 |
# File 'lib/alula/oauth.rb', line 137 def error @error end |
#error_description ⇒ Object (readonly)
Returns the value of attribute error_description.
137 138 139 |
# File 'lib/alula/oauth.rb', line 137 def error_description @error_description end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
137 138 139 |
# File 'lib/alula/oauth.rb', line 137 def raw_response @raw_response end |