Class: Ray::Payloads::NotifyPayload
- Defined in:
- lib/ray/payloads/notify_payload.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(text) ⇒ NotifyPayload
constructor
A new instance of NotifyPayload.
- #type ⇒ Object
Methods inherited from Payload
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
#content ⇒ Object
12 13 14 15 16 |
# File 'lib/ray/payloads/notify_payload.rb', line 12 def content { value: @text, } end |
#type ⇒ Object
8 9 10 |
# File 'lib/ray/payloads/notify_payload.rb', line 8 def type 'notify' end |