Sha256: cfa3c61228339b56c4f8062aae530286f22d06c76ef8a88e36f8b2a0653f553e

Contents?: true

Size: 290 Bytes

Versions: 9

Compression:

Stored size: 290 Bytes

Contents

require 'ostruct'
module ArSync
  config_keys = %i[
    current_user_method
    key_secret
    key_prefix
    key_expires_in
  ]
  Config = Struct.new(*config_keys)

  def self.config
    @config ||= Config.new :current_user, nil, nil
  end

  def self.configure
    yield config
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ar_sync-1.1.2 lib/ar_sync/config.rb
ar_sync-1.1.1 lib/ar_sync/config.rb
ar_sync-1.1.0 lib/ar_sync/config.rb
ar_sync-1.0.5 lib/ar_sync/config.rb
ar_sync-1.0.4 lib/ar_sync/config.rb
ar_sync-1.0.3 lib/ar_sync/config.rb
ar_sync-1.0.2 lib/ar_sync/config.rb
ar_sync-1.0.1 lib/ar_sync/config.rb
ar_sync-1.0.0 lib/ar_sync/config.rb