Exception: Grumlin::UnknownResponseStatus

Inherits:
ProtocolError show all
Defined in:
lib/grumlin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ UnknownResponseStatus

Returns a new instance of UnknownResponseStatus.



58
59
60
61
# File 'lib/grumlin.rb', line 58

def initialize(status)
  super("unknown response status code #{status[:code]}")
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



56
57
58
# File 'lib/grumlin.rb', line 56

def status
  @status
end