Class: Tjcrawler::Crawler::Result
- Inherits:
-
Object
- Object
- Tjcrawler::Crawler::Result
- Defined in:
- lib/tjcrawler/crawler/result.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#links ⇒ Object
Returns the value of attribute links.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(**params) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(**params) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 |
# File 'lib/tjcrawler/crawler/result.rb', line 5 def initialize(**params) params.each do |key, value| instance_variable_set("@#{key}", value) unless value.nil? end end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/tjcrawler/crawler/result.rb', line 4 def content @content end |
#links ⇒ Object
Returns the value of attribute links.
4 5 6 |
# File 'lib/tjcrawler/crawler/result.rb', line 4 def links @links end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/tjcrawler/crawler/result.rb', line 4 def url @url end |