Sha256: 7d6f140cb6f71b8e379b65546fae30b169061e1eb79c0ae59f0288f76a52d70f

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module LedgerSerializerType
        class DateType < Adaptors::LedgerSerializerType::MappingType
          def convert_from_ledger(value:)
            return value if value.nil?

            value.to_date
          end

          def convert_from_local(value:)
            return value if value.nil?

            value.to_s
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb
ledger_sync-1.1.3 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/date_type.rb