Exception: Shutl::Resource::Error
- Inherits:
-
IOError
- Object
- IOError
- Shutl::Resource::Error
- Defined in:
- lib/shutl/resource/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(body, status) ⇒ Error
constructor
A new instance of Error.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
2 3 4 |
# File 'lib/shutl/resource/errors.rb', line 2 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
2 3 4 |
# File 'lib/shutl/resource/errors.rb', line 2 def status @status end |