Sha256: 0f2fc3cc41427c30111db75dab2507ff7d1988f458ed36fb5f04a05aba5037b3

Contents?: true

Size: 339 Bytes

Versions: 5

Compression:

Stored size: 339 Bytes

Contents

module Rumour
  class Configuration
    CONFIGURABLE_ATTRIBUTES = [
      :api_key,
      :access_token
    ]

    attr_accessor *CONFIGURABLE_ATTRIBUTES

    def initialize
      # Nothing to do
    end
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield configuration
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rumour-ruby-0.0.5 lib/rumour-ruby/configuration.rb
rumour-ruby-0.0.4 lib/rumour-ruby/configuration.rb
rumour-ruby-0.0.3 lib/rumour-ruby/configuration.rb
rumour-ruby-0.0.2 lib/rumour-ruby/configuration.rb
rumour-ruby-0.0.1 lib/rumour-ruby/configuration.rb