Sha256: 0405c5019fa4c3bde2060d7883fe575e6369ed29feb84398617344ea5df8bafc

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

module InternalAffairs
  class Configuration
    attr_accessor :host, :app_key_id, :app_key_secret, :disable_audit_logs, :connection_timeout

    def initialize
      @disable_audit_logs = false
      @connection_timeout = 1.0
    end

    def audit_logs_enabled?
      !disable_audit_logs && host.present?
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
internal-affairs-1.2.0 lib/internal_affairs/configuration.rb
internal-affairs-1.1.2 lib/internal_affairs/configuration.rb
internal-affairs-1.1.1 lib/internal_affairs/configuration.rb
internal-affairs-1.1.0 lib/internal_affairs/configuration.rb
internal-affairs-1.0.1 lib/internal_affairs/configuration.rb
internal-affairs-1.0.0 lib/internal_affairs/configuration.rb