Sha256: 66097511c47f22bff7c8a7c51df00f2adbcb73f39a468601a3559958aa42a523

Contents?: true

Size: 437 Bytes

Versions: 15

Compression:

Stored size: 437 Bytes

Contents

module Aggcat
  module Configurable

    attr_writer :issuer_id, :consumer_key, :consumer_secret, :certificate_path, :customer_id

    KEYS = [:issuer_id, :consumer_key, :consumer_secret, :certificate_path, :customer_id]

    def configure
      yield self
      self
    end

    private

    def options
      Aggcat::Configurable::KEYS.inject({}) { |hash, key| hash[key] = instance_variable_get(:"@#{key}"); hash }
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
aggcat-0.1.9 lib/aggcat/configurable.rb
aggcat-0.1.8 lib/aggcat/configurable.rb
aggcat-0.1.7 lib/aggcat/configurable.rb
aggcat-0.1.6 lib/aggcat/configurable.rb
aggcat-0.1.5 lib/aggcat/configurable.rb
aggcat-0.1.4 lib/aggcat/configurable.rb
aggcat-0.1.3 lib/aggcat/configurable.rb
aggcat-0.1.2 lib/aggcat/configurable.rb
aggcat-0.1.1 lib/aggcat/configurable.rb
aggcat-0.1.0 lib/aggcat/configurable.rb
aggcat-0.0.9 lib/aggcat/configurable.rb
aggcat-0.0.8 lib/aggcat/configurable.rb
aggcat-0.0.7 lib/aggcat/configurable.rb
aggcat-0.0.6 lib/aggcat/configurable.rb
aggcat-0.0.5 lib/aggcat/configurable.rb