Sha256: 38efb20fa7879455857f04e3a0ee7e1cd90c6d3dd3a7b2204781d5688d17fdb1

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module Esse
  class DocumentLazyAttribute
    attr_reader :options

    def initialize(**kwargs)
      @options = kwargs
    end

    # Returns an Hash with the document ID as key and attribute data as value.
    # @param doc_headers [Array<Esse::LazyDocumentHeader>] the document headers
    # @return [Hash] An Hash with the instance of document header as key and the attribute data as value.
    def call(doc_headers)
      raise NotImplementedError, 'Override this method to return the document attribute data'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
esse-0.4.0.rc4 lib/esse/document_lazy_attribute.rb
esse-0.4.0.rc3 lib/esse/document_lazy_attribute.rb
esse-0.4.0.rc2 lib/esse/document_lazy_attribute.rb
esse-0.4.0.rc1 lib/esse/document_lazy_attribute.rb
esse-0.3.5 lib/esse/document_lazy_attribute.rb
esse-0.3.4 lib/esse/document_lazy_attribute.rb
esse-0.3.3 lib/esse/document_lazy_attribute.rb
esse-0.3.2 lib/esse/document_lazy_attribute.rb
esse-0.3.1 lib/esse/document_lazy_attribute.rb
esse-0.3.0 lib/esse/document_lazy_attribute.rb