Class: HelpScout::ErrorEnvelope

Inherits:
Object
  • Object
show all
Defined in:
lib/helpscout/models.rb

Overview

Error Envelope

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



44
45
46
# File 'lib/helpscout/models.rb', line 44

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



44
45
46
# File 'lib/helpscout/models.rb', line 44

def status
  @status
end