Class: Stealth::ServiceMessage
- Inherits:
-
Object
- Object
- Stealth::ServiceMessage
- Defined in:
- lib/stealth/service_message.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message ⇒ Object
Returns the value of attribute message.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#referral ⇒ Object
Returns the value of attribute referral.
-
#sender_id ⇒ Object
Returns the value of attribute sender_id.
-
#service ⇒ Object
Returns the value of attribute service.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(service:) ⇒ ServiceMessage
constructor
A new instance of ServiceMessage.
Constructor Details
#initialize(service:) ⇒ ServiceMessage
Returns a new instance of ServiceMessage.
10 11 12 13 14 |
# File 'lib/stealth/service_message.rb', line 10 def initialize(service:) @service = service @attachments = [] @location = {} end |
Instance Attribute Details
#attachments ⇒ Object
Returns the value of attribute attachments.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def @attachments end |
#location ⇒ Object
Returns the value of attribute location.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def location @location end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def @message end |
#payload ⇒ Object
Returns the value of attribute payload.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def payload @payload end |
#referral ⇒ Object
Returns the value of attribute referral.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def referral @referral end |
#sender_id ⇒ Object
Returns the value of attribute sender_id.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def sender_id @sender_id end |
#service ⇒ Object
Returns the value of attribute service.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def service @service end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def @timestamp end |