Class: OmniScrapper::Result::Signature
- Inherits:
-
Object
- Object
- OmniScrapper::Result::Signature
- Defined in:
- lib/omni_scrapper/result.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
- #calculate ⇒ Object
-
#initialize(data) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(data) ⇒ Signature
Returns a new instance of Signature.
20 21 22 |
# File 'lib/omni_scrapper/result.rb', line 20 def initialize(data) self.data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
18 19 20 |
# File 'lib/omni_scrapper/result.rb', line 18 def data @data end |
Instance Method Details
#calculate ⇒ Object
24 25 26 |
# File 'lib/omni_scrapper/result.rb', line 24 def calculate Digest::MD5.hexdigest(data.to_s) end |