Class: Jackasset::UrlChecker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:) ⇒ UrlChecker

Returns a new instance of UrlChecker.



7
8
9
# File 'lib/jackasset/url_checker.rb', line 7

def initialize(url:)
  @url_string = url
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



5
6
7
# File 'lib/jackasset/url_checker.rb', line 5

def uri
  @uri
end

#url_stringObject (readonly)

Returns the value of attribute url_string.



5
6
7
# File 'lib/jackasset/url_checker.rb', line 5

def url_string
  @url_string
end

Instance Method Details

#callObject



11
12
13
# File 'lib/jackasset/url_checker.rb', line 11

def call
  check_url
end