Sha256: 1381aa9a8744d335db0fd46ddaa4a2bf8bb9a695340a239c6cb3c50010252f42

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

module Sterling

  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(self.configuration)
  end

  class Configuration
    attr_accessor :api_version, :api_key, :api_host

    def initialize
      @api_version = '2.1'
      @api_key = nil
      @api_host = nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sterling-1.1.2 lib/sterling/configuration.rb
sterling-1.1.1 lib/sterling/configuration.rb
sterling-1.1.0 lib/sterling/configuration.rb