Class: LinkChecker::Task
- Inherits:
-
Object
- Object
- LinkChecker::Task
- Includes:
- Callbacks
- Defined in:
- lib/ruby-link-checker/task.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#checker ⇒ Object
readonly
Returns the value of attribute checker.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#original_uri ⇒ Object
readonly
Returns the value of attribute original_uri.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(checker, uri, method, original_uri, options = {}) ⇒ Task
constructor
A new instance of Task.
- #run! ⇒ Object
Methods included from Callbacks
#callbacks, #delegates, #method_missing, #on
Constructor Details
#initialize(checker, uri, method, original_uri, options = {}) ⇒ Task
Returns a new instance of Task.
7 8 9 10 11 12 13 14 |
# File 'lib/ruby-link-checker/task.rb', line 7 def initialize(checker, uri, method, original_uri, = {}) @checker = checker @logger = checker.logger @uri = uri @original_uri = original_uri || @uri @method = method @options = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class LinkChecker::Callbacks
Instance Attribute Details
#checker ⇒ Object (readonly)
Returns the value of attribute checker.
5 6 7 |
# File 'lib/ruby-link-checker/task.rb', line 5 def checker @checker end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
5 6 7 |
# File 'lib/ruby-link-checker/task.rb', line 5 def logger @logger end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
5 6 7 |
# File 'lib/ruby-link-checker/task.rb', line 5 def method @method end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/ruby-link-checker/task.rb', line 5 def @options end |
#original_uri ⇒ Object (readonly)
Returns the value of attribute original_uri.
5 6 7 |
# File 'lib/ruby-link-checker/task.rb', line 5 def original_uri @original_uri end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
5 6 7 |
# File 'lib/ruby-link-checker/task.rb', line 5 def uri @uri end |
Instance Method Details
#run! ⇒ Object
16 17 18 |
# File 'lib/ruby-link-checker/task.rb', line 16 def run! raise NotImplementedError end |