Class: UU::Finman::FinancialTransaction::FinancialTransactionDTO
- Inherits:
-
OS::REST::DTO
- Object
- OS::REST::DTO
- UU::Finman::FinancialTransaction::FinancialTransactionDTO
- Defined in:
- lib/uu/finman/financialtransaction/financial_transaction_dto.rb
Overview
Common ancestor for Financial Transaction DTOs.
Direct Known Subclasses
CreditNoteAttributes, ExpostPaymentAttributes, FastPaymentAttributes, FinancialTransactionAttributes, FinancialTransactionCheckTransactionsToBePaid, FinancialTransactionPayTransactionsToBePaid, PaymentAttributes, PaymentCopyAttributes, TransferAttributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(method, *args, &block)
Handle invocation of missing setter while constructing new DTO.
19 20 21 22 23 24 25 |
# File 'lib/uu/finman/financialtransaction/financial_transaction_dto.rb', line 19 def method_missing(method, *args, &block) if (method.to_s[/=$/]) && (args.size == 1) # Do nothing - do not log attribute from JSON that has no attribute in DTO. else super.method_missing(method, args, &block) end end |