Class: Issue::Error
- Inherits:
-
Object
- Object
- Issue::Error
- Defined in:
- lib/issue/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, msg) ⇒ Error
constructor
Initialize Issue::Error object with: status: html status code msg: message to send back in response.
Constructor Details
#initialize(status, msg) ⇒ Error
Initialize Issue::Error object with: status: html status code msg: message to send back in response
9 10 11 12 |
# File 'lib/issue/error.rb', line 9 def initialize(status, msg) @status = status @message = msg end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/issue/error.rb', line 4 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/issue/error.rb', line 3 def status @status end |