Sha256: f2dfb5e3881f6646cf396daaa3c4d94c75cdc044ef553e44e368b6f5d27cbe76

Contents?: true

Size: 555 Bytes

Versions: 20

Compression:

Stored size: 555 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
    
    def initialize
      self.anonymous_customer_stripe_id = "TODO"
      self.anonymous_plan_stripe_id = "TODO"
      self.free_plan_stripe_id = "TODO"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
paid_up-0.4.4 lib/paid_up/configuration.rb
paid_up-0.4.3 lib/paid_up/configuration.rb
paid_up-0.4.2 lib/paid_up/configuration.rb
paid_up-0.4.1 lib/paid_up/configuration.rb
paid_up-0.4.0 lib/paid_up/configuration.rb
paid_up-0.3.0 lib/paid_up/configuration.rb
paid_up-0.2.4 lib/paid_up/configuration.rb
paid_up-0.2.3 lib/paid_up/configuration.rb
paid_up-0.2.2 lib/paid_up/configuration.rb
paid_up-0.2.1 lib/paid_up/configuration.rb
paid_up-0.2.0 lib/paid_up/configuration.rb
paid_up-0.1.9 lib/paid_up/configuration.rb
paid_up-0.1.8 lib/paid_up/configuration.rb
paid_up-0.1.7 lib/paid_up/configuration.rb
paid_up-0.1.6 lib/paid_up/configuration.rb
paid_up-0.1.5 lib/paid_up/configuration.rb
paid_up-0.1.4 lib/paid_up/configuration.rb
paid_up-0.1.3 lib/paid_up/configuration.rb
paid_up-0.1.1 lib/paid_up/configuration.rb
paid_up-0.1.0 lib/paid_up/configuration.rb