Class: GeneratorLabs::RBLCheck
- Inherits:
-
Object
- Object
- GeneratorLabs::RBLCheck
- Defined in:
- lib/generatorlabs/rbl.rb
Overview
Manual RBL check operations
Instance Method Summary collapse
-
#initialize(handler) ⇒ RBLCheck
constructor
A new instance of RBLCheck.
-
#start(params) ⇒ Hash
Start a manual RBL check.
-
#status(id, params = {}) ⇒ Hash
Get the status of a manual RBL check.
Constructor Details
#initialize(handler) ⇒ RBLCheck
Returns a new instance of RBLCheck.
52 53 54 |
# File 'lib/generatorlabs/rbl.rb', line 52 def initialize(handler) @handler = handler end |
Instance Method Details
#start(params) ⇒ Hash
Start a manual RBL check
59 60 61 |
# File 'lib/generatorlabs/rbl.rb', line 59 def start(params) @handler.post('rbl/check/start', params) end |
#status(id, params = {}) ⇒ Hash
Get the status of a manual RBL check
67 68 69 |
# File 'lib/generatorlabs/rbl.rb', line 67 def status(id, params = {}) @handler.get("rbl/check/status/#{id}", params) end |