Class: Stealth::ServiceMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/stealth/service_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  @attachments = []
  @location = {}
end

Instance Attribute Details

#attachmentsObject

Returns the value of attribute attachments.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def attachments
  @attachments
end

#catch_all_reasonObject

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

#confidenceObject

Returns the value of attribute confidence.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def confidence
  @confidence
end

#locationObject

Returns the value of attribute location.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def location
  @location
end

#messageObject

Returns the value of attribute message.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def message
  @message
end

#nlp_resultObject

Returns the value of attribute nlp_result.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def nlp_result
  @nlp_result
end

#payloadObject

Returns the value of attribute payload.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def payload
  @payload
end

#referralObject

Returns the value of attribute referral.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def referral
  @referral
end

#sender_idObject

Returns the value of attribute sender_id.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def sender_id
  @sender_id
end

#serviceObject

Returns the value of attribute service.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def service
  @service
end

#target_idObject

Returns the value of attribute target_id.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def target_id
  @target_id
end

#timestampObject

Returns the value of attribute timestamp.



7
8
9
# File 'lib/stealth/service_message.rb', line 7

def timestamp
  @timestamp
end