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.2.2 lib/billing.rb
billing-0.2.1 lib/billing.rb
billing-0.2.0 lib/billing.rb
billing-0.1.9 lib/billing.rb
billing-0.1.8 lib/billing.rb
billing-0.1.7 lib/billing.rb
billing-0.1.6 lib/billing.rb
billing-0.1.5 lib/billing.rb
billing-0.1.4 lib/billing.rb
billing-0.1.3 lib/billing.rb
billing-0.1.2a lib/billing.rb
billing-0.1.2 lib/billing.rb
billing-0.1.1 lib/billing.rb
billing-0.1.0a lib/billing.rb
billing-0.1.0 lib/billing.rb
billing-0.0.9 lib/billing.rb
billing-0.0.8a lib/billing.rb
billing-0.0.8 lib/billing.rb
billing-0.0.7i lib/billing.rb
billing-0.0.7g lib/billing.rb