Exception: DNSimpler::Error
- Inherits:
-
StandardError
- Object
- StandardError
- DNSimpler::Error
- Defined in:
- lib/dnsimpler/error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(code, body, response) ⇒ Error
constructor
A new instance of Error.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/dnsimpler/error.rb', line 3 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/dnsimpler/error.rb', line 3 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/dnsimpler/error.rb', line 3 def response @response end |