Sha256: 9da9caf7078b80026a122353a301d9839555947e0b2c76cab825a0dbf14d6f97

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 Bytes

Contents

module Zumata
  class << self
    attr_accessor :configuration
  end
 
  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end
 
  class Configuration
    attr_accessor :api_url, :api_key
 
    def initialize
      @api_url = ''
      @api_key = nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zumata-0.0.4 lib/zumata/config.rb
zumata-0.0.3 lib/zumata/config.rb
zumata-0.0.2 lib/zumata/config.rb