Class: HelpScout::ErrorEnvelope
- Inherits:
-
Object
- Object
- HelpScout::ErrorEnvelope
- Defined in:
- lib/helpscout/models.rb
Overview
Error Envelope
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(object) ⇒ ErrorEnvelope
constructor
Creates a new ErrorEnvelope object from a Hash of attributes.
Constructor Details
#initialize(object) ⇒ ErrorEnvelope
Creates a new ErrorEnvelope object from a Hash of attributes
47 48 49 50 |
# File 'lib/helpscout/models.rb', line 47 def initialize(object) @status = object["status"] @message = object["message"] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
44 45 46 |
# File 'lib/helpscout/models.rb', line 44 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
44 45 46 |
# File 'lib/helpscout/models.rb', line 44 def status @status end |