Sha256: 675b737939440f41a95a4bea1dc20231808c9354284e48e420c43f9a123a9b7f

Contents?: true

Size: 352 Bytes

Versions: 33

Compression:

Stored size: 352 Bytes

Contents

require "billing/engine"
require "billing/billable"

module Billing
  mattr_reader :mappings
  @@mappings = ActiveSupport::OrderedHash.new
  
  class << self
    def setup
      yield self
    end

    def add_mapping(resource, options)
      mapping = Billing::Mapping.new(resource, options)
      @@mappings[mapping.name] = mapping
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
billing-0.0.7f lib/billing.rb
billing-0.0.7e lib/billing.rb
billing-0.0.7d lib/billing.rb
billing-0.0.7c lib/billing.rb
billing-0.0.7b lib/billing.rb
billing-0.0.7a lib/billing.rb
billing-0.0.7 lib/billing.rb
billing-0.0.6a lib/billing.rb
billing-0.0.5b lib/billing.rb
billing-0.0.5a lib/billing.rb
billing-0.0.5 lib/billing.rb
billing-0.0.4d lib/billing.rb
billing-0.0.4c lib/billing.rb