Sha256: 26f0b84e4e87193161308b9c6763416dd989b8b23067a3c906b604da2e4583b3

Contents?: true

Size: 1.22 KB

Versions: 32

Compression:

Stored size: 1.22 KB

Contents

module DiscoApp

  class Configuration

    # Required configuration.
    attr_accessor :app_name

    # Set the list of Shopify webhook topics to register.
    attr_accessor :webhook_topics

    # Set the below if using an application proxy.
    attr_accessor :app_proxy_prefix

    # Set the below if providing a carrier service endpoint.
    attr_accessor :carrier_service_callback_url

    # Set the below to create real Shopify charges.
    attr_accessor :real_charges
    alias_method  :real_charges?, :real_charges

    # Optional configuration, usually useful for development environments.
    attr_accessor :skip_proxy_verification
    alias_method  :skip_proxy_verification?, :skip_proxy_verification
    attr_accessor :skip_webhook_verification
    alias_method  :skip_webhook_verification?, :skip_webhook_verification
    attr_accessor :skip_carrier_request_verification
    alias_method  :skip_carrier_request_verification?, :skip_carrier_request_verification
    attr_accessor :skip_oauth
    alias_method  :skip_oauth?, :skip_oauth

  end

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

  def self.configuration=(config)
    @configuration = config
  end

  def self.configure
    yield configuration
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
disco_app-0.10.0 lib/disco_app/configuration.rb
disco_app-0.10.1 lib/disco_app/configuration.rb
disco_app-0.10.2 lib/disco_app/configuration.rb
disco_app-0.10.3 lib/disco_app/configuration.rb
disco_app-0.10.4 lib/disco_app/configuration.rb
disco_app-0.10.5 lib/disco_app/configuration.rb
disco_app-0.11.0 lib/disco_app/configuration.rb
disco_app-0.11.1 lib/disco_app/configuration.rb
disco_app-0.12.0 lib/disco_app/configuration.rb
disco_app-0.12.1 lib/disco_app/configuration.rb
disco_app-0.12.5 lib/disco_app/configuration.rb
disco_app-0.12.6 lib/disco_app/configuration.rb
disco_app-0.12.7 lib/disco_app/configuration.rb
disco_app-0.13.0 lib/disco_app/configuration.rb
disco_app-0.13.1 lib/disco_app/configuration.rb
disco_app-0.13.2 lib/disco_app/configuration.rb
disco_app-0.13.3 lib/disco_app/configuration.rb
disco_app-0.13.4 lib/disco_app/configuration.rb
disco_app-0.13.5 lib/disco_app/configuration.rb
disco_app-0.13.6 lib/disco_app/configuration.rb