class EsHttpClient::Client

Public Class Methods

new(connection) click to toggle source
# File lib/es_http_client/client.rb, line 8
def initialize(connection)
  @connection = connection
end

Public Instance Methods

all_events() click to toggle source
# File lib/es_http_client/client.rb, line 20
def all_events
  @all ||= ReadonlyStream.new("$all", @connection)
end
resource(id) click to toggle source
# File lib/es_http_client/client.rb, line 12
def resource(id)
  WriteableStream.new(id, @connection)
end
stream(type, id) click to toggle source
# File lib/es_http_client/client.rb, line 16
def stream(type, id)
  resource("#{type}-#{id}")
end