Class: Mallory::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mallory/configuration.rb

Class Method Summary collapse

Class Method Details

.backendObject



24
25
26
# File 'lib/mallory/configuration.rb', line 24

def self.backend
  @settings[:backend]
end

.backend=(other) ⇒ Object



28
29
30
# File 'lib/mallory/configuration.rb', line 28

def self.backend=(other)
  @settings[:backend] = other
end

.certificate_managerObject



32
33
34
# File 'lib/mallory/configuration.rb', line 32

def self.certificate_manager
  @settings[:certificate_manager]
end

.certificate_manager=(other) ⇒ Object



36
37
38
# File 'lib/mallory/configuration.rb', line 36

def self.certificate_manager=(other)
  @settings[:certificate_manager] = other
end

.connect_timeoutObject



48
49
50
# File 'lib/mallory/configuration.rb', line 48

def self.connect_timeout
  @settings[:connect_timeout]
end

.connect_timeout=(other) ⇒ Object



52
53
54
# File 'lib/mallory/configuration.rb', line 52

def self.connect_timeout=(other)
  @settings[:connect_timeout] = other
end

.inactivity_timeoutObject



56
57
58
# File 'lib/mallory/configuration.rb', line 56

def self.inactivity_timeout
  @settings[:inactivity_timeout]
end

.inactivity_timeout=(other) ⇒ Object



60
61
62
# File 'lib/mallory/configuration.rb', line 60

def self.inactivity_timeout=(other)
  @settings[:inactivity_timeout] = other
end

.loggerObject



16
17
18
# File 'lib/mallory/configuration.rb', line 16

def self.logger
  @settings[:logger]
end

.logger=(other) ⇒ Object



20
21
22
# File 'lib/mallory/configuration.rb', line 20

def self.logger=(other)
  @settings[:logger] = other
end

.portObject



40
41
42
# File 'lib/mallory/configuration.rb', line 40

def self.port
  @settings[:port]
end

.port=(other) ⇒ Object



44
45
46
# File 'lib/mallory/configuration.rb', line 44

def self.port=(other)
  @settings[:port] = other
end

.registerObject



9
10
11
12
13
14
# File 'lib/mallory/configuration.rb', line 9

def self.register
  if block_given?
    yield(self)
  end
  self
end

.reset!Object



64
65
66
# File 'lib/mallory/configuration.rb', line 64

def self.reset!
  @settings = {}
end