Sha256: c004496db0036b0990853964463a1e59534b7598f8b2bea737a7431374b95eff

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 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.
  class Configuration
    attr_reader :table_name

    attr_accessor :key
    attr_accessor :truncate_useragent

    # 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

1 entries across 1 versions & 1 rubygems

Version Path
firebug-0.1.4 lib/firebug/configuration.rb