Class: GeneratorLabs::RBL
- Inherits:
-
Object
- Object
- GeneratorLabs::RBL
- Defined in:
- lib/generatorlabs/rbl.rb
Overview
RBL monitoring API namespace
Instance Method Summary collapse
-
#check ⇒ RBLCheck
Access manual RBL check operations.
-
#hosts ⇒ RBLHosts
Access host management operations.
-
#initialize(handler) ⇒ RBL
constructor
A new instance of RBL.
-
#listings ⇒ Hash
Get current RBL listings for monitored hosts.
-
#profiles ⇒ RBLProfiles
Access profile management operations.
-
#sources ⇒ RBLSources
Access source management operations.
Constructor Details
#initialize(handler) ⇒ RBL
Returns a new instance of RBL.
15 16 17 |
# File 'lib/generatorlabs/rbl.rb', line 15 def initialize(handler) @handler = handler end |
Instance Method Details
#check ⇒ RBLCheck
Access manual RBL check operations
39 40 41 |
# File 'lib/generatorlabs/rbl.rb', line 39 def check @check ||= RBLCheck.new(@handler) end |
#hosts ⇒ RBLHosts
Access host management operations
21 22 23 |
# File 'lib/generatorlabs/rbl.rb', line 21 def hosts @hosts ||= RBLHosts.new(@handler) end |
#listings ⇒ Hash
Get current RBL listings for monitored hosts
45 46 47 |
# File 'lib/generatorlabs/rbl.rb', line 45 def listings @handler.get('rbl/listings') end |
#profiles ⇒ RBLProfiles
Access profile management operations
27 28 29 |
# File 'lib/generatorlabs/rbl.rb', line 27 def profiles @profiles ||= RBLProfiles.new(@handler) end |
#sources ⇒ RBLSources
Access source management operations
33 34 35 |
# File 'lib/generatorlabs/rbl.rb', line 33 def sources @sources ||= RBLSources.new(@handler) end |