Class: FinancialTransactionTypeSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/financial_transaction_type_serializer.rb

Instance Method Summary collapse

Instance Method Details

#bank_account_ibanObject



14
15
16
# File 'app/serializers/financial_transaction_type_serializer.rb', line 14

def 
  object..try(:iban)
end

#bank_account_nameObject



10
11
12
# File 'app/serializers/financial_transaction_type_serializer.rb', line 10

def 
  object..try(:name)
end

#financial_transaction_class_nameObject



6
7
8
# File 'app/serializers/financial_transaction_type_serializer.rb', line 6

def financial_transaction_class_name
  object.financial_transaction_class.name
end