Sha256: a961f429628cb138f0dfb463b45a689074e57b1f704aa21cdc3f697cf2df8a4c

Contents?: true

Size: 607 Bytes

Versions: 15

Compression:

Stored size: 607 Bytes

Contents

module Tr3llo
  class Configuration
    def initialize
      @container = Container.new
    end

    def user_id=(value)
      container.register(:user_id, value)
    end

    def user_id
      container.resolve(:user_id)
    end

    def api_key=(value)
      container.register(:api_key, value)
    end

    def api_key
      container.resolve(:api_key)
    end

    def api_token=(token)
      container.register(:api_token, token)
    end

    def api_token
      container.resolve(:api_token)
    end

    def finalize!
      container.freeze
    end

    private

    attr_reader :container
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
3llo-1.3.1 lib/3llo/configuration.rb
3llo-1.3.1.pre.rc.0 lib/3llo/configuration.rb
3llo-1.2.0 lib/3llo/configuration.rb
3llo-1.1.0 lib/3llo/configuration.rb
3llo-1.0.0 lib/3llo/configuration.rb
3llo-1.0.0.pre.rc.0 lib/3llo/configuration.rb
3llo-0.3.1 lib/3llo/configuration.rb
3llo-0.3.0 lib/3llo/configuration.rb
3llo-0.2.0 lib/3llo/configuration.rb
3llo-0.1.12 lib/3llo/configuration.rb
3llo-0.1.11 lib/3llo/configuration.rb
3llo-0.1.10 lib/3llo/configuration.rb
3llo-0.1.9 lib/3llo/configuration.rb
3llo-0.1.9.beta lib/3llo/configuration.rb
3llo-0.1.8 lib/3llo/configuration.rb