Sha256: 2d542562bacbac4faa16f8dd7d4fd5726d2332c5ead129ac6fb4dd7fd7c5a4a6
Contents?: true
Size: 597 Bytes
Versions: 14
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true module LedgerSync module NetSuite class Type class DeserializerCustomerType < LedgerSync::Type::Value def initialize(args = {}) @customer_class = args.fetch(:customer_class) super() end private def cast_value(args = {}) value = args.fetch(:value) return if value.nil? @customer_class.new( ledger_id: value.fetch('id', nil) ) end def valid_classes [ Hash ] end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems