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.
-
#catch_all_reason ⇒ Object
Returns the value of attribute catch_all_reason.
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message ⇒ Object
Returns the value of attribute message.
-
#nlp_result ⇒ Object
Returns the value of attribute nlp_result.
-
#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.
-
#target_id ⇒ Object
Returns the value of attribute target_id.
-
#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.
11 12 13 14 15 |
# File 'lib/stealth/service_message.rb', line 11 def initialize(service:) @service = service = [] @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 end |
#catch_all_reason ⇒ Object
Returns the value of attribute catch_all_reason.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def catch_all_reason @catch_all_reason end |
#confidence ⇒ Object
Returns the value of attribute confidence.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def confidence @confidence 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 end |
#nlp_result ⇒ Object
Returns the value of attribute nlp_result.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def nlp_result @nlp_result 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 |
#target_id ⇒ Object
Returns the value of attribute target_id.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def target_id @target_id end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
7 8 9 |
# File 'lib/stealth/service_message.rb', line 7 def end |