Sha256: b240e80636a6a3f688c5d03c9e73160d9b0365d2266a13f17177b3e2d4b7fa86

Contents?: true

Size: 892 Bytes

Versions: 12

Compression:

Stored size: 892 Bytes

Contents

module VaultedBilling
  autoload :Version, 'vaulted_billing/version'
  autoload :Gateway, 'vaulted_billing/gateway'
  autoload :Gateways, 'vaulted_billing/gateways'
  autoload :Customer, 'vaulted_billing/customer'
  autoload :CreditCard, 'vaulted_billing/credit_card'
  autoload :Transaction, 'vaulted_billing/transaction'
  autoload :HttpsInterface, 'vaulted_billing/https_interface'

  mattr_accessor :logger

  Dir[File.expand_path(File.join(File.dirname(__FILE__), 'vaulted_billing', 'core_ext', '**', '*.rb'))].each do |extension|
    require extension
  end

  ##
  # Return the matching gateway for the name provided.
  # 
  # * <tt>bogus</tt>:: BogusGateway - always successful, does nothing.
  # * <tt>nmi_customer_vault</tt>:: NMICustomerVaultGateway
  #
  def self.gateway(name)
    Gateways.const_get(name.to_s.camelize)
  end

  def self.logger?
    @@logger.present?
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vaulted_billing-0.0.11 lib/vaulted_billing.rb
vaulted_billing-0.0.10 lib/vaulted_billing.rb
vaulted_billing-0.0.9 lib/vaulted_billing.rb
vaulted_billing-0.0.8 lib/vaulted_billing.rb
vaulted_billing-0.0.7 lib/vaulted_billing.rb
vaulted_billing-0.0.6 lib/vaulted_billing.rb
vaulted_billing-0.0.5 lib/vaulted_billing.rb
vaulted_billing-0.0.4 lib/vaulted_billing.rb
vaulted_billing-0.0.3 lib/vaulted_billing.rb
vaulted_billing-0.0.2 lib/vaulted_billing.rb
vaulted_billing-0.0.1 lib/vaulted_billing.rb
vaulted_billing-0.0.0 lib/vaulted_billing.rb