Sha256: 53d13010ed1cfa1b2a849af4ea30e16f9bffe71a4a827520a66ebe1e95576058
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true module LedgerSync module Adaptors module QuickBooksOnline module LedgerSerializerType class DepartmentReferenceType < Adaptors::LedgerSerializerType::ValueType def convert_from_ledger(value:) return if value.nil? return if value['value'].nil? LedgerSync::Department.new(ledger_id: value['value']) end def convert_from_local(value:) return if value.nil? { 'value' => value.ledger_id } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.5 | lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/department_reference_type.rb |