Exception: Rets::AuthorizationFailure

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/rets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ AuthorizationFailure

Returns a new instance of AuthorizationFailure.



15
16
17
18
19
# File 'lib/rets.rb', line 15

def initialize(status, body)
  @status = status
  @body = body
  super("HTTP status: #{status} (#{body})")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



14
15
16
# File 'lib/rets.rb', line 14

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



14
15
16
# File 'lib/rets.rb', line 14

def status
  @status
end