Class: Ray::Payloads::CustomPayload
- Defined in:
- lib/ray/payloads/custom_payload.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(content, label = '') ⇒ CustomPayload
constructor
A new instance of CustomPayload.
- #type ⇒ Object
Methods inherited from Payload
Constructor Details
#initialize(content, label = '') ⇒ CustomPayload
Returns a new instance of CustomPayload.
5 6 7 8 |
# File 'lib/ray/payloads/custom_payload.rb', line 5 def initialize(content, label = '') @content = content @label = label end |
Instance Method Details
#content ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ray/payloads/custom_payload.rb', line 14 def content { content: @content, label: @label } end |
#type ⇒ Object
10 11 12 |
# File 'lib/ray/payloads/custom_payload.rb', line 10 def type 'custom' end |