Exception: DNSimpler::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dnsimpler/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, body, response) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
# File 'lib/dnsimpler/error.rb', line 5

def initialize(code, body, response)
  @code = code
  @body = body
  @response = response
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/dnsimpler/error.rb', line 3

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/dnsimpler/error.rb', line 3

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/dnsimpler/error.rb', line 3

def response
  @response
end