Class: LedgerSync::Ledgers::NetSuite::JournalEntry::Serializer

Inherits:
Serializer show all
Defined in:
lib/ledger_sync/ledgers/netsuite/journal_entry/serializer.rb

Instance Method Summary collapse

Methods inherited from Serializer

attribute, attribute_class, attributes, references_many, references_one, #serialize, serializer_from

Methods included from Serialization::Mixin

included

Instance Method Details

#currency_present?(args = {}) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
30
31
# File 'lib/ledger_sync/ledgers/netsuite/journal_entry/serializer.rb', line 27

def currency_present?(args = {})
  resource = args.fetch(:resource)

  resource.currency.present?
end