Class: LessNeglectApi::Message

Inherits:
Event show all
Defined in:
lib/lessneglect/objects/message.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#magnitude, #name

Instance Method Summary collapse

Methods inherited from ApiObject

#initialize

Constructor Details

This class inherits a constructor from LessNeglectApi::ApiObject

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/lessneglect/objects/message.rb', line 4

def body
  @body
end

#subjectObject

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(options={})
  super.merge({
    :klass => "message",
    :subject => self.subject,
    :body => self.body
  }).as_json(options)
end