Sha256: 16d278e52647b9fcbff32a7f372f121bd5547226446534697b6334e100466b2f
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true require_relative 'value' module LedgerSync module Type class ReferenceOne < Value # :nodoc: include ValueMixin attr_reader :resource_class def initialize(resource_class:) @resource_class = resource_class super() end def type :reference_one end def resource_classes @resource_classes ||= if resource_class.is_a?(Array) resource_class else [resource_class] end end private def valid_classes resource_classes end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.4.2 | lib/ledger_sync/type/reference_one.rb |
ledger_sync-1.4.1 | lib/ledger_sync/type/reference_one.rb |
ledger_sync-1.4.0 | lib/ledger_sync/type/reference_one.rb |