Class: HatebloMixedContentsFinder::InvalidContent
- Inherits:
-
Object
- Object
- HatebloMixedContentsFinder::InvalidContent
- Defined in:
- lib/hateblo_mixed_contents_finder/invalid_content.rb
Instance Attribute Summary collapse
-
#attr ⇒ Object
readonly
Returns the value of attribute attr.
-
#entry_id ⇒ Object
readonly
Returns the value of attribute entry_id.
-
#entry_title ⇒ Object
readonly
Returns the value of attribute entry_title.
-
#link_url ⇒ Object
readonly
Returns the value of attribute link_url.
-
#page_url ⇒ Object
readonly
Returns the value of attribute page_url.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(page_url, entry_id, entry_title, tag, attr, link_url) ⇒ InvalidContent
constructor
A new instance of InvalidContent.
- #to_s ⇒ Object
Constructor Details
#initialize(page_url, entry_id, entry_title, tag, attr, link_url) ⇒ InvalidContent
Returns a new instance of InvalidContent.
5 6 7 8 9 10 11 12 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 5 def initialize(page_url, entry_id, entry_title, tag, attr, link_url) @page_url = page_url.to_s @entry_id = entry_id @entry_title = entry_title @tag = tag @attr = attr @link_url = link_url end |
Instance Attribute Details
#attr ⇒ Object (readonly)
Returns the value of attribute attr.
3 4 5 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 3 def attr @attr end |
#entry_id ⇒ Object (readonly)
Returns the value of attribute entry_id.
3 4 5 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 3 def entry_id @entry_id end |
#entry_title ⇒ Object (readonly)
Returns the value of attribute entry_title.
3 4 5 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 3 def entry_title @entry_title end |
#link_url ⇒ Object (readonly)
Returns the value of attribute link_url.
3 4 5 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 3 def link_url @link_url end |
#page_url ⇒ Object (readonly)
Returns the value of attribute page_url.
3 4 5 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 3 def page_url @page_url end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
3 4 5 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 3 def tag @tag end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/hateblo_mixed_contents_finder/invalid_content.rb', line 14 def to_s [page_url, entry_id, entry_title, tag, attr, link_url].join("\t") end |