Class: Fog::DNS::Rackspace::CallbackError

Inherits:
Errors::Error
  • Object
show all
Defined in:
lib/fog/rackspace/dns.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ CallbackError

Returns a new instance of CallbackError.



16
17
18
19
20
# File 'lib/fog/rackspace/dns.rb', line 16

def initialize(response)
  @response = response
  @message = response.body['error']['message']
  @details = response.body['error']['details']
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



15
16
17
# File 'lib/fog/rackspace/dns.rb', line 15

def details
  @details
end

#messageObject (readonly)

Returns the value of attribute message.



15
16
17
# File 'lib/fog/rackspace/dns.rb', line 15

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



15
16
17
# File 'lib/fog/rackspace/dns.rb', line 15

def response
  @response
end