Sha256: 629b00f1ca4c1d6c1952356c8059e2263d4e526f3e94a9ace4d890341910d74d

Contents?: true

Size: 672 Bytes

Versions: 20

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

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

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

  # PaidUp Configuration
  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

20 entries across 20 versions & 1 rubygems

Version Path
paid_up-0.13.21 lib/paid_up/configuration.rb
paid_up-0.13.17 lib/paid_up/configuration.rb
paid_up-0.13.16 lib/paid_up/configuration.rb
paid_up-0.13.14 lib/paid_up/configuration.rb
paid_up-0.13.13 lib/paid_up/configuration.rb
paid_up-0.13.12 lib/paid_up/configuration.rb
paid_up-0.13.11 lib/paid_up/configuration.rb
paid_up-0.13.10 lib/paid_up/configuration.rb
paid_up-0.13.9 lib/paid_up/configuration.rb
paid_up-0.13.8 lib/paid_up/configuration.rb
paid_up-0.13.7 lib/paid_up/configuration.rb
paid_up-0.13.6 lib/paid_up/configuration.rb
paid_up-0.13.5 lib/paid_up/configuration.rb
paid_up-0.13.4 lib/paid_up/configuration.rb
paid_up-0.13.3 lib/paid_up/configuration.rb
paid_up-0.13.2 lib/paid_up/configuration.rb
paid_up-0.13.1 lib/paid_up/configuration.rb
paid_up-0.13.0 lib/paid_up/configuration.rb
paid_up-0.12.4 lib/paid_up/configuration.rb
paid_up-0.12.3 lib/paid_up/configuration.rb