Class: OmniScrapper::Normalizers::Base

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

Direct Known Subclasses

Phone

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/omni_scrapper/normalizers/base.rb', line 6

def initialize(value)
  self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/omni_scrapper/normalizers/base.rb', line 4

def value
  @value
end

Instance Method Details

#normalizedObject



10
11
12
# File 'lib/omni_scrapper/normalizers/base.rb', line 10

def normalized
  fail 'Implement in child class'
end