Sha256: a029d79db2d96da4043b25997f48a09f52fb759b9722717b531476070a150f08

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

module Firebug
  # A configuration object.
  #
  # @attr [String] key the encryption key used to encrypt and decrypt cookies.
  # @attr [String] table_name the name of the sessions table.
  # @attr [Boolean] truncate_useragent truncate the user-agent to 120 characters.
  # @attr [Boolean] match_user_agent use the user-agent in addition to the session ID.
  # @attr [Boolean] match_ip_address use the remote ip address in addition to the session ID.
  class Configuration
    attr_reader :table_name

    attr_accessor :key
    attr_accessor :truncate_useragent
    attr_accessor :match_user_agent
    attr_accessor :match_ip_address

    # Sets the table name for +Firebug::Session+
    #
    # @param [String] value
    def table_name=(value)
      Firebug::Session.table_name = value
      @table_name = value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
firebug-0.1.7 lib/firebug/configuration.rb
firebug-0.1.6 lib/firebug/configuration.rb