Class: OmniScrapper::Result
- Inherits:
-
Object
- Object
- OmniScrapper::Result
- Defined in:
- lib/omni_scrapper/result.rb
Defined Under Namespace
Classes: Signature
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#data ⇒ Object
Returns the value of attribute data.
-
#scrapper_name ⇒ Object
Returns the value of attribute scrapper_name.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #build(data) ⇒ Object
-
#initialize(scrapper_name) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(scrapper_name) ⇒ Result
Returns a new instance of Result.
5 6 7 8 |
# File 'lib/omni_scrapper/result.rb', line 5 def initialize(scrapper_name) self.scrapper_name = scrapper_name self. = Time.now end |
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum.
3 4 5 |
# File 'lib/omni_scrapper/result.rb', line 3 def checksum @checksum end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/omni_scrapper/result.rb', line 3 def data @data end |
#scrapper_name ⇒ Object
Returns the value of attribute scrapper_name.
3 4 5 |
# File 'lib/omni_scrapper/result.rb', line 3 def scrapper_name @scrapper_name end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/omni_scrapper/result.rb', line 3 def @timestamp end |