class Eventum::Client

Client for the Event Store API

@includes {Eventum::Configurable}

Public Class Methods

new() { |self| ... } click to toggle source

Creates a new instance of {Eventum::Client}

@yield [self]

A configurable object

@example

Eventum::Client.new do |config|
  config.adapter = :excon
  config.host = "http://localhost"
  config.port = 2121
end

@return [Eventum::Client]

@api public

# File lib/eventum/client.rb, line 23
def initialize
  yield self if block_given?
end

Public Instance Methods

events() click to toggle source

Points to an `events` API client

@return [Eventum::Client::Events]

@api public

# File lib/eventum/client.rb, line 41
def events
  @events ||= Eventum::Client::Events.new(self)
end
streams() click to toggle source

Points to a `streams` API client

@return [Eventum::Client::Streams]

@api public

# File lib/eventum/client.rb, line 32
def streams
  @streams ||= Eventum::Client::Streams.new(self)
end