Exception: Wrappix::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wrappix.rb,
lib/wrappix/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, body = nil, status = nil) ⇒ Error

Returns a new instance of Error.



68
69
70
71
72
# File 'lib/wrappix/request.rb', line 68

def initialize(message, body = nil, status = nil)
  @body = body
  @status = status
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



66
67
68
# File 'lib/wrappix/request.rb', line 66

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



66
67
68
# File 'lib/wrappix/request.rb', line 66

def status
  @status
end