Exception: Rets::AuthorizationFailure
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Rets::AuthorizationFailure
- Defined in:
- lib/rets.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ AuthorizationFailure
constructor
A new instance of AuthorizationFailure.
Constructor Details
#initialize(status, body) ⇒ AuthorizationFailure
Returns a new instance of AuthorizationFailure.
14 15 16 17 18 |
# File 'lib/rets.rb', line 14 def initialize(status, body) @status = status @body = body super("HTTP status: #{status} (#{body})") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
13 14 15 |
# File 'lib/rets.rb', line 13 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/rets.rb', line 13 def status @status end |