Class: Amsi::AttributeParser::Base
- Inherits:
-
Object
- Object
- Amsi::AttributeParser::Base
- Defined in:
- lib/amsi/attribute_parser/base.rb
Overview
Base class for attribute parsers.
Instance Method Summary collapse
-
#initialize(value, timezone = nil) ⇒ Base
constructor
A new instance of Base.
-
#parse ⇒ Object
The parsed attribute value.
Constructor Details
#initialize(value, timezone = nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/amsi/attribute_parser/base.rb', line 8 def initialize(value, timezone = nil) @value = value @timezone = timezone end |
Instance Method Details
#parse ⇒ Object
Returns the parsed attribute value.
14 15 16 17 |
# File 'lib/amsi/attribute_parser/base.rb', line 14 def parse raise NotImplementedError, "#{self.class.name} must implement #{__method__}" end |