Module: Rollday
- Defined in:
- lib/rollday.rb,
lib/rollday/errors.rb,
lib/rollday/version.rb,
lib/rollday/middleware.rb,
lib/rollday/configuration.rb,
lib/rollday/rollbar_helper.rb,
lib/rollday/use_middleware.rb,
lib/rollday/client_middleware.rb
Defined Under Namespace
Modules: FaradayConnectionOptions, RollbarHelper, UseMiddleware
Classes: ConfigError, Configuration, Error, Faraday, Middleware
Constant Summary
collapse
- MIDDLEWARE_NAME =
:rollday.freeze
- VERSION =
"0.6.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
Also known as:
config
16
17
18
|
# File 'lib/rollday.rb', line 16
def self.configuration
@configuration ||= Rollday::Configuration.new
end
|
.configuration=(object) ⇒ Object
Also known as:
config=
20
21
22
23
24
|
# File 'lib/rollday.rb', line 20
def self.configuration=(object)
raise ConfigError, "Expected configuration to be a Rollday::Configuration" unless object.is_a?(Rollday::Configuration)
@configuration = object
end
|
12
13
14
|
# File 'lib/rollday.rb', line 12
def self.configure
yield configuration if block_given?
end
|
.register_middleware! ⇒ Object
.reset_configuration! ⇒ Object
Also known as:
reset_config!
26
27
28
|
# File 'lib/rollday.rb', line 26
def self.reset_configuration!
@configuration = Rollday::Configuration.new
end
|
.use_default_client_middleware! ⇒ Object
.use_default_middleware! ⇒ Object
.with_scope ⇒ Object
48
49
|
# File 'lib/rollday.rb', line 48
def self.with_scope()
end
|