Sha256: c2fda0935c93101afb7e0dfa89a2bd4bede9fc79366021efae8a2f3b0a570e61

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

module Ray
  module Payloads
    class NotifyPayload < Payload
      def initialize(text)
        @text = text
      end

      def type
        'notify'
      end

      def content
        {
          value: @text,
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-ray-0.4.1 lib/ray/payloads/notify_payload.rb
ruby-ray-0.4.0 lib/ray/payloads/notify_payload.rb
ruby-ray-0.3.0 lib/ray/payloads/notify_payload.rb
ruby-ray-0.2.0 lib/ray/payloads/notify_payload.rb