Class: OmniScrapper::Result::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/omni_scrapper/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



18
19
20
# File 'lib/omni_scrapper/result.rb', line 18

def data
  @data
end

Instance Method Details

#calculateObject



24
25
26
# File 'lib/omni_scrapper/result.rb', line 24

def calculate
  Digest::MD5.hexdigest(data.to_s)
end