Class: LedgerSync::NetSuite::Check::Serializer
- Inherits:
-
Serializer
- Object
- Serializer
- Serializer
- LedgerSync::NetSuite::Check::Serializer
- Defined in:
- lib/ledger_sync/netsuite/check/serializer.rb
Instance Method Summary collapse
- #account_present?(args = {}) ⇒ Boolean
- #currency_present?(args = {}) ⇒ Boolean
- #department_present?(args = {}) ⇒ Boolean
Instance Method Details
#account_present?(args = {}) ⇒ Boolean
29 30 31 32 33 |
# File 'lib/ledger_sync/netsuite/check/serializer.rb', line 29 def account_present?(args = {}) resource = args.fetch(:resource) resource.account.present? end |
#currency_present?(args = {}) ⇒ Boolean
41 42 43 44 45 |
# File 'lib/ledger_sync/netsuite/check/serializer.rb', line 41 def currency_present?(args = {}) resource = args.fetch(:resource) resource.currency.present? end |
#department_present?(args = {}) ⇒ Boolean
35 36 37 38 39 |
# File 'lib/ledger_sync/netsuite/check/serializer.rb', line 35 def department_present?(args = {}) resource = args.fetch(:resource) resource.department.present? end |