Class: OmniScrapper::Normalizers::Base
- Inherits:
-
Object
- Object
- OmniScrapper::Normalizers::Base
- Defined in:
- lib/omni_scrapper/normalizers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Base
constructor
A new instance of Base.
- #normalized ⇒ Object
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
#value ⇒ Object
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
#normalized ⇒ Object
10 11 12 |
# File 'lib/omni_scrapper/normalizers/base.rb', line 10 def normalized fail 'Implement in child class' end |