lib/amsi/attribute_parser/base.rb in amsi-1.0.1 vs lib/amsi/attribute_parser/base.rb in amsi-1.1.0

- old
+ new

@@ -3,21 +3,22 @@ module Amsi class AttributeParser # Base class for attribute parsers. class Base # @param value [String] the response value from AMSI - def initialize(value) + def initialize(value, timezone = nil) @value = value + @timezone = timezone end # @return [Object] the parsed attribute value def parse raise NotImplementedError, "#{self.class.name} must implement #{__method__}" end private - attr_reader :value + attr_reader :value, :timezone end end end