Module: Umami
- Defined in:
- lib/umami.rb,
lib/umami/client.rb,
lib/umami/errors.rb,
lib/umami/version.rb,
lib/umami/configuration.rb
Defined Under Namespace
Classes: APIError, AuthenticationError, Client, ClientError, Configuration, ConfigurationError, Error, NotFoundError, ServerError
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
14
15
16
|
# File 'lib/umami.rb', line 14
def self.configuration
@configuration ||= Configuration.new
end
|
.logger ⇒ Object
22
23
24
25
26
|
# File 'lib/umami.rb', line 22
def self.logger
@logger ||= Logger.new($stdout).tap do |log|
log.progname = self.name
end
end
|
Class Method Details
.client(options = {}) ⇒ Object
32
33
34
|
# File 'lib/umami.rb', line 32
def self.client(options = {})
Client.new(options)
end
|
18
19
20
|
# File 'lib/umami.rb', line 18
def self.configure
yield(configuration)
end
|
.reset ⇒ Object
28
29
30
|
# File 'lib/umami.rb', line 28
def self.reset
@configuration = Configuration.new
end
|