class Ray::Payloads::StringPayload

Public Class Methods

new(str) click to toggle source
# File lib/ray/payloads/string_payload.rb, line 5
def initialize(str)
  @str = str
end

Public Instance Methods

content() click to toggle source
# File lib/ray/payloads/string_payload.rb, line 13
def content
  {
    content: @str,
    label: 'String'
  }
end
type() click to toggle source
# File lib/ray/payloads/string_payload.rb, line 9
def type
  'custom'
end