Class: LedgerSync::Domains::Serializer::Query::SerializerReferencesManyType

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger_sync/domains/serializer/query.rb

Instance Method Summary collapse

Instance Method Details

#proxy(serializer:, resource:, attribute:) ⇒ Object



111
112
113
114
115
116
# File 'lib/ledger_sync/domains/serializer/query.rb', line 111

def proxy(serializer:, resource:, attribute:)
  Query.new(
    serializer: serializer,
    query: resource.try(attribute)
  )
end