Sha256: c97156a1d2f14b574ce65bcd281171ea96482882d5d44c0feca12c507a67bc0a

Contents?: true

Size: 586 Bytes

Versions: 23

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Serialization
    module AttributeSetMixin
      include Util::Mixins::DelegateIterableMethodsMixin

      attr_reader :attributes,
                  :serializer_class

      delegate_hash_methods_to :attributes

      def initialize(args = {})
        @attributes       = {}
        @serializer_class = args.fetch(:serializer_class)
      end

      def add(_attribute)
        raise NotImplementedError
      end

      def hash_attribute?(key)
        hash_attribute_keyed_hash.include?(key.to_s)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ledger_sync-3.0.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.6.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.5.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.4.4 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.3.1 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.2.3 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.2.1 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.2.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.0.2 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.0.1 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.0.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-2.0.0.pre.1 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.8.1 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.8.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.7.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.6.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.5.2 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.5.1 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.5.0 lib/ledger_sync/serialization/attribute_set_mixin.rb
ledger_sync-1.4.4 lib/ledger_sync/serialization/attribute_set_mixin.rb