Sha256: b05362d058782905a91f2006aeadf6fd82ca6d88532242291db789b6b45e4c9d
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
require_relative './readonly_stream' require_relative './writeable_stream' module EsHttpClient class Client def initialize(connection) @connection = connection end def resource(id) WriteableStream.new(id, @connection) end def stream(type, id) resource("#{type}-#{id}") end def all_events @all ||= ReadonlyStream.new("$all", @connection) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
es-http-client-0.2.0 | lib/es_http_client/client.rb |