Class: LessNeglectApi::Message
- Defined in:
- lib/lessneglect/objects/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#subject ⇒ Object
Returns the value of attribute subject.
Attributes inherited from Event
Instance Method Summary collapse
Methods inherited from ApiObject
Constructor Details
This class inherits a constructor from LessNeglectApi::ApiObject
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/lessneglect/objects/message.rb', line 4 def body @body end |
#subject ⇒ Object
Returns the value of attribute subject.
4 5 6 |
# File 'lib/lessneglect/objects/message.rb', line 4 def subject @subject end |
Instance Method Details
#as_json(options = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/lessneglect/objects/message.rb', line 6 def as_json(={}) super.merge({ :klass => "message", :subject => self.subject, :body => self.body }).as_json() end |