Class: UrlChecker::SingleChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/url_checker/single_checker.rb

Overview

Checks a single URL and returns the result

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/url_checker/single_checker.rb', line 6

def uri
  @uri
end

#url_stringObject (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

#callObject



12
13
14
# File 'lib/url_checker/single_checker.rb', line 12

def call
  check_url
end