Module: Eventflit

Extended by:
Forwardable
Defined in:
lib/eventflit.rb,
lib/eventflit/client.rb,
lib/eventflit/channel.rb,
lib/eventflit/request.rb,
lib/eventflit/version.rb,
lib/eventflit/webhook.rb,
lib/eventflit/resource.rb,
lib/eventflit/native_notification/client.rb

Overview

Used for configuring API credentials and creating Channel objects

Defined Under Namespace

Modules: NativeNotification Classes: AuthenticationError, Channel, Client, ConfigurationError, Error, HTTPError, Request, Resource, WebHook

Constant Summary collapse

VERSION =
'0.1.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



47
48
49
50
51
52
53
# File 'lib/eventflit.rb', line 47

def logger
  @logger ||= begin
    log = Logger.new($stdout)
    log.level = Logger::INFO
    log
  end
end

Class Method Details

.default_clientObject



55
56
57
58
59
60
# File 'lib/eventflit.rb', line 55

def default_client
  @default_client ||= begin
    cli = Eventflit::Client
    ENV['EVENTFLIT_URL'] ? cli.from_env : cli.new
  end
end