Class: UrlChecker::SingleChecker
- Inherits:
-
Object
- Object
- UrlChecker::SingleChecker
- Defined in:
- lib/url_checker/single_checker.rb
Overview
Checks a single URL and returns the result
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#url_string ⇒ Object
readonly
Returns the value of attribute url_string.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(url:) ⇒ SingleChecker
constructor
A new instance of SingleChecker.
Constructor Details
#initialize(url:) ⇒ SingleChecker
Returns a new instance of SingleChecker.
8 9 10 |
# File 'lib/url_checker/single_checker.rb', line 8 def initialize(url:) @url_string = url end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/url_checker/single_checker.rb', line 6 def uri @uri end |
#url_string ⇒ Object (readonly)
Returns the value of attribute url_string.
6 7 8 |
# File 'lib/url_checker/single_checker.rb', line 6 def url_string @url_string end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/url_checker/single_checker.rb', line 12 def call check_url end |