Class: Seo::InternalLinkValidator::Result
- Inherits:
-
Data
- Object
- Data
- Seo::InternalLinkValidator::Result
- Defined in:
- app/services/seo/internal_link_validator.rb
Instance Attribute Summary collapse
-
#broken_links ⇒ Object
readonly
Returns the value of attribute broken_links.
-
#checked_count ⇒ Object
readonly
Returns the value of attribute checked_count.
Instance Method Summary collapse
-
#initialize(broken_links: [], checked_count: 0) ⇒ Result
constructor
A new instance of Result.
- #valid? ⇒ Boolean
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
#broken_links ⇒ Object (readonly)
Returns the value of attribute broken_links
27 28 29 |
# File 'app/services/seo/internal_link_validator.rb', line 27 def broken_links @broken_links end |
#checked_count ⇒ Object (readonly)
Returns the value of attribute 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
29 |
# File 'app/services/seo/internal_link_validator.rb', line 29 def valid? = broken_links.empty? |