Exception: Dnsimple::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/dnsimple/error.rb

Direct Known Subclasses

RecordNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RequestError

Returns a new instance of RequestError.


9
10
11
12
# File 'lib/dnsimple/error.rb', line 9

def initialize(response)
  @response = response
  super("#{response.code}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


7
8
9
# File 'lib/dnsimple/error.rb', line 7

def response
  @response
end