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

.configurationObject 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=

Raises:



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

.configure {|configuration| ... } ⇒ Object

Yields:



12
13
14
# File 'lib/rollday.rb', line 12

def self.configure
  yield configuration if block_given?
end

.register_middleware!Object



44
45
46
# File 'lib/rollday.rb', line 44

def self.register_middleware!
  Rollday::UseMiddleware.register_middleware!
end

.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



40
41
42
# File 'lib/rollday.rb', line 40

def self.use_default_client_middleware!
  Rollday::UseMiddleware.use_default_client_middleware!
end

.use_default_middleware!Object



36
37
38
# File 'lib/rollday.rb', line 36

def self.use_default_middleware!
  Rollday::UseMiddleware.use_default_middleware!
end

.with_scopeObject



48
49
# File 'lib/rollday.rb', line 48

def self.with_scope()
end