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.



10
11
12
13
14
# File 'lib/stealth/service_message.rb', line 10

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

#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

#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

#timestampObject

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end