Sha256: f42b40763efed2c59ed4816a410189d5d095e52fbc9f15bd1d39950c1d8c36be

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

module AppleAuth
  class << self
    def configure
      yield config
    end

    def reset_configuration
      @config = Config.new
    end

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

  class Config
    attr_accessor :apple_client_id, :apple_private_key, :apple_key_id,
                  :apple_team_id, :redirect_uri
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apple_auth-1.1.0 lib/apple_auth/config.rb
apple_auth-1.0.0 lib/apple_auth/config.rb
apple_auth-0.1.0 lib/apple_auth/config.rb