Sha256: 5283c7fb2565b34aa33c304061d746a8a42cea0d33d78a8bccbae7096786a9b0

Contents?: true

Size: 456 Bytes

Versions: 7

Compression:

Stored size: 456 Bytes

Contents

module RealPage
  class AttributeParser
    # Base class for attribute parsers.
    class Base
      # @param value [String] the response value from RealPage
      def initialize(value)
        @value = value
      end

      # @return [Object] the parsed attribute value
      def parse
        raise NotImplementedError,
              "#{self.class.name} must implement #{__method__}"
      end

      private

      attr_reader :value
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
real_page-2.3.6 lib/real_page/attribute_parser/base.rb
real_page-2.3.5 lib/real_page/attribute_parser/base.rb
real_page-2.3.4 lib/real_page/attribute_parser/base.rb
real_page-2.3.3 lib/real_page/attribute_parser/base.rb
real_page-2.3.2 lib/real_page/attribute_parser/base.rb
real_page-2.3.1 lib/real_page/attribute_parser/base.rb
real_page-2.3.0 lib/real_page/attribute_parser/base.rb