Module: Urkel
- Defined in:
- lib/urkel.rb,
lib/urkel/version.rb,
lib/urkel/connection.rb,
lib/urkel/configuration.rb
Defined Under Namespace
Classes: Configuration, Connection, InvalidAPITokenError, InvalidConfigurationError
Constant Summary
collapse
- VERSION =
"0.0.2"
Class Method Summary
collapse
Class Method Details
10
11
12
13
14
|
# File 'lib/urkel.rb', line 10
def self.configure
configuration = Configuration.new
yield configuration
@connection = Connection.new(configuration)
end
|
.oops(error) ⇒ Object
16
17
18
19
|
# File 'lib/urkel.rb', line 16
def self.oops(error)
raise InvalidConfigurationError.new unless @connection
@connection.publish(error)
end
|
.oops!(error) ⇒ Object
21
22
23
24
|
# File 'lib/urkel.rb', line 21
def self.oops!(error)
raise InvalidConfigurationError.new unless @connection
@connection.publish!(error)
end
|
.reset ⇒ Object
26
27
28
|
# File 'lib/urkel.rb', line 26
def self.reset
@connection = nil
end
|