Sha256: c8913210324c88ea1ec18656105a09f1bdea2c5e18f7b2dc14d3a8793cca3c32

Contents?: true

Size: 583 Bytes

Versions: 37

Compression:

Stored size: 583 Bytes

Contents

module PaidUp
  def self.configure(configuration = PaidUp::Configuration.new)
    if block_given?
      yield configuration
    end
    @@configuration = configuration
  end

  def self.configuration
    @@configuration ||= PaidUp::Configuration.new
  end

  class Configuration
    attr_accessor :anonymous_customer_stripe_id, :anonymous_plan_stripe_id, :free_plan_stripe_id, :features

    def initialize
      self.anonymous_customer_stripe_id = "TODO"
      self.anonymous_plan_stripe_id = "TODO"
      self.free_plan_stripe_id = "TODO"
      self.features = {}
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
paid_up-0.9.13 lib/paid_up/configuration.rb
paid_up-0.9.12 lib/paid_up/configuration.rb
paid_up-0.9.11 lib/paid_up/configuration.rb
paid_up-0.9.10 lib/paid_up/configuration.rb
paid_up-0.9.9 lib/paid_up/configuration.rb
paid_up-0.9.8 lib/paid_up/configuration.rb
paid_up-0.9.7 lib/paid_up/configuration.rb
paid_up-0.9.6 lib/paid_up/configuration.rb
paid_up-0.9.5 lib/paid_up/configuration.rb
paid_up-0.9.4 lib/paid_up/configuration.rb
paid_up-0.9.3 lib/paid_up/configuration.rb
paid_up-0.9.2 lib/paid_up/configuration.rb
paid_up-0.9.1 lib/paid_up/configuration.rb
paid_up-0.9.0 lib/paid_up/configuration.rb
paid_up-0.8.1 lib/paid_up/configuration.rb
paid_up-0.7.11 lib/paid_up/configuration.rb
paid_up-0.7.10 lib/paid_up/configuration.rb
paid_up-0.7.9 lib/paid_up/configuration.rb
paid_up-0.7.8 lib/paid_up/configuration.rb
paid_up-0.7.7 lib/paid_up/configuration.rb