Sha256: 74d6f5cf84bc217285dc01c7d8a3bb9e812ce53a781324a0bce72288d8c05867

Contents?: true

Size: 319 Bytes

Versions: 4

Compression:

Stored size: 319 Bytes

Contents

module DiscountNetwork
  class Configuration
    attr_accessor :api_host, :api_key, :auth_token

    def initialize
      @api_host ||= "https://api.discountnetwork.io/api/v1"
    end
  end

  def self.configure
    yield configuration
  end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
discountnetwork-0.1.3 lib/discountnetwork/configuration.rb
discountnetwork-0.1.2 lib/discountnetwork/configuration.rb
discountnetwork-0.1.1 lib/discountnetwork/configuration.rb
discountnetwork-0.1.0 lib/discountnetwork/configuration.rb