Class: Ray::Payloads::NotifyPayload

Inherits:
Payload
  • Object
show all
Defined in:
lib/ray/payloads/notify_payload.rb

Instance Method Summary collapse

Methods inherited from Payload

#get_origin, #to_hash

Constructor Details

#initialize(text) ⇒ NotifyPayload

Returns a new instance of NotifyPayload.



4
5
6
# File 'lib/ray/payloads/notify_payload.rb', line 4

def initialize(text)
  @text = text
end

Instance Method Details

#contentObject



12
13
14
15
16
# File 'lib/ray/payloads/notify_payload.rb', line 12

def content
  {
    value: @text,
  }
end

#typeObject



8
9
10
# File 'lib/ray/payloads/notify_payload.rb', line 8

def type
  'notify'
end