Sha256: 4b1b5ab45804d68d43a245e231dac39771fa57dc9f66ba18fbe5e35f0d6b9082

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

require "billing/engine"
require "billing/billable"
require "billing/mapping"
require "billing/routes"

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

4 entries across 4 versions & 1 rubygems

Version Path
billing-0.0.4b lib/billing.rb
billing-0.0.4a lib/billing.rb
billing-0.0.4 lib/billing.rb
billing-0.0.3 lib/billing.rb