Class: LinkChecker::Result

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

Overview

Abstract base class for representing the results of checking one URI.

Direct Known Subclasses

Error, Good, Redirect

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Result

A new LinkChecker::Result object instance.

Parameters:

  • params (Hash)

    A hash of parameters. Expects :uri_string.



217
218
219
# File 'lib/link_checker.rb', line 217

def initialize(params)
  @uri_string = params[:uri_string]
end

Instance Attribute Details

#uri_stringObject

Returns the value of attribute uri_string.



212
213
214
# File 'lib/link_checker.rb', line 212

def uri_string
  @uri_string
end