Class: Seo::InternalLinkValidator::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/seo/internal_link_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(broken_links: [], checked_count: 0) ⇒ Result

Returns a new instance of Result.



28
# File 'app/services/seo/internal_link_validator.rb', line 28

def initialize(broken_links: [], checked_count: 0) = super

Instance Attribute Details

Returns the value of attribute broken_links

Returns:

  • (Object)

    the current value of broken_links



27
28
29
# File 'app/services/seo/internal_link_validator.rb', line 27

def broken_links
  @broken_links
end

#checked_countObject (readonly)

Returns the value of attribute checked_count

Returns:

  • (Object)

    the current value of checked_count



27
28
29
# File 'app/services/seo/internal_link_validator.rb', line 27

def checked_count
  @checked_count
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


29
# File 'app/services/seo/internal_link_validator.rb', line 29

def valid? = broken_links.empty?