Sha256: cf3022967049dd7781806c09358b88b0ee5577d50b4e093d7cde29ebbf1f6521

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# lib/tinybird/event/create.rb

module Tinybird
  module Event
    class Create
      include Tinybird::Callable
      include Tinybird::Requestable

      requestable method: :post

      attr_reader :body, :event_name, :wait, :headers

      def initialize(body, event_name:, wait: false, headers: {})
        @body = body
        @event_name = event_name
        @wait = wait
        @headers = headers
      end

      private

      def path_segment
        "v0/events?name=#{event_name}&wait=#{wait}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tinybird-0.1.1 lib/tinybird/event/create.rb