class Biro::Configuration
Attributes
environment[RW]
logger[RW]
Public Instance Methods
development!()
click to toggle source
# File lib/biro/configuration.rb, line 13 def development! @environment = :development end
development?()
click to toggle source
# File lib/biro/configuration.rb, line 17 def development? @environment == :development end
gateway(name, options = {})
click to toggle source
# File lib/biro/configuration.rb, line 21 def gateway(name, options = {}) klass_name = Biro::Utils.camelize(name.to_s) + '::Request' klass = Biro.const_get(klass_name) Biro.gateways[name] = klass.new(options) end