Class: HomeQ::SOBS::Message
- Inherits:
-
Object
- Object
- HomeQ::SOBS::Message
- Defined in:
- lib/homeq/sobs/message.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#job_id ⇒ Object
Returns the value of attribute job_id.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message_type = nil, job_id = nil, payload = nil, args = nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message_type = nil, job_id = nil, payload = nil, args = nil) ⇒ Message
Returns a new instance of Message.
38 39 40 41 42 43 |
# File 'lib/homeq/sobs/message.rb', line 38 def initialize(=nil, job_id=nil, payload=nil, args=nil) @type = @job_id = job_id @payload = payload @args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
36 37 38 |
# File 'lib/homeq/sobs/message.rb', line 36 def args @args end |
#job_id ⇒ Object
Returns the value of attribute job_id.
34 35 36 |
# File 'lib/homeq/sobs/message.rb', line 34 def job_id @job_id end |
#payload ⇒ Object
Returns the value of attribute payload.
35 36 37 |
# File 'lib/homeq/sobs/message.rb', line 35 def payload @payload end |
#type ⇒ Object
Returns the value of attribute type.
33 34 35 |
# File 'lib/homeq/sobs/message.rb', line 33 def type @type end |