Sha256: aca242f4dcb799fa9b57cbee49c47a117701b6d57b86b9cb9ce65302ec090769

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module Bitmarkable
  class Config
    attr_accessor :login, :api_key, :base_url

    def initialize
      self.login, self.api_key, self.base_url = nil
    end
  end

  def self.config
    @config ||= Config.new
  end

  def self.configure
    yield(config) if block_given?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bitmarkable-0.1.2 lib/bitmarkable/config.rb
bitmarkable-0.1.1 lib/bitmarkable/config.rb
bitmarkable-0.0.2.2 lib/bitmarkable/config.rb
bitmarkable-0.0.2.1 lib/bitmarkable/config.rb
bitmarkable-0.0.2 lib/bitmarkable/config.rb