Module: Elk

Extended by:
Forwardable
Defined in:
lib/elk.rb,
lib/elk/sms.rb,
lib/elk/util.rb,
lib/elk/error.rb,
lib/elk/client.rb,
lib/elk/number.rb,
lib/elk/version.rb

Overview

Base module Used for to configure username and password through Elk.configure

Defined Under Namespace

Modules: Util Classes: AuthError, BadRequest, BadResponse, Client, MissingParameter, Number, SMS, ServerError

Constant Summary collapse

VERSION =
"0.6.1"

Class Method Summary collapse

Class Method Details

.clientObject

Not thread safe



37
38
39
# File 'lib/elk.rb', line 37

def client
  @client ||= Client.new
end

.configure {|client| ... } ⇒ Object

Set up authentication credentials, has to be done before using Elk::Number and Elk::SMS

Elk.configure do |config|
  config.username = "USERNAME"
  config.password = "PASSWORD"
end

Yields:



32
33
34
# File 'lib/elk.rb', line 32

def configure
  yield client
end