Class: HomeQ::SOBS::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/homeq/sobs/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message_type=nil, job_id=nil, payload=nil, args=nil)
  @type = message_type
  @job_id = job_id
  @payload = payload
  @args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



36
37
38
# File 'lib/homeq/sobs/message.rb', line 36

def args
  @args
end

#job_idObject

Returns the value of attribute job_id.



34
35
36
# File 'lib/homeq/sobs/message.rb', line 34

def job_id
  @job_id
end

#payloadObject

Returns the value of attribute payload.



35
36
37
# File 'lib/homeq/sobs/message.rb', line 35

def payload
  @payload
end

#typeObject

Returns the value of attribute type.



33
34
35
# File 'lib/homeq/sobs/message.rb', line 33

def type
  @type
end