Class: Access::Error
- Inherits:
-
Object
- Object
- Access::Error
- Defined in:
- lib/access/error.rb
Defined Under Namespace
Classes: AuthenticationError, InvalidResponseFormat, NoAccessToken, NoData, Timeout
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(response_status, response_code, response_message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response_status, response_code, response_message = nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 |
# File 'lib/access/error.rb', line 11 def initialize(response_status, response_code, = nil) @status_code = response_code @status = response_status @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'lib/access/error.rb', line 9 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/access/error.rb', line 9 def status @status end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
9 10 11 |
# File 'lib/access/error.rb', line 9 def status_code @status_code end |