Exception: Shutl::Resource::Error

Inherits:
IOError
  • Object
show all
Defined in:
lib/shutl/resource/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, status) ⇒ Error

Returns a new instance of Error.



4
5
6
# File 'lib/shutl/resource/errors.rb', line 4

def initialize body, status
  @body, @status = body, status
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



2
3
4
# File 'lib/shutl/resource/errors.rb', line 2

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



2
3
4
# File 'lib/shutl/resource/errors.rb', line 2

def status
  @status
end