Class: Calendav::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/calendav/errors.rb

Direct Known Subclasses

RedirectError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RequestError

Returns a new instance of RequestError.



20
21
22
23
24
# File 'lib/calendav/errors.rb', line 20

def initialize(response)
  super response.status.to_s

  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



18
19
20
# File 'lib/calendav/errors.rb', line 18

def response
  @response
end