Class: Mallory::Configuration
- Inherits:
-
Object
- Object
- Mallory::Configuration
- Defined in:
- lib/mallory/configuration.rb
Class Method Summary collapse
- .backend ⇒ Object
- .backend=(other) ⇒ Object
- .certificate_manager ⇒ Object
- .certificate_manager=(other) ⇒ Object
- .connect_timeout ⇒ Object
- .connect_timeout=(other) ⇒ Object
- .inactivity_timeout ⇒ Object
- .inactivity_timeout=(other) ⇒ Object
- .logger ⇒ Object
- .logger=(other) ⇒ Object
- .port ⇒ Object
- .port=(other) ⇒ Object
- .register ⇒ Object
- .reset! ⇒ Object
Class Method Details
.backend ⇒ Object
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_manager ⇒ Object
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_timeout ⇒ Object
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_timeout ⇒ Object
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 |
.logger ⇒ Object
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 |
.port ⇒ Object
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 |
.register ⇒ Object
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 |