Class: HatebloMixedContentsFinder::InvalidContent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attrObject (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_idObject (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_titleObject (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

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_urlObject (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

#tagObject (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_sObject



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