Class: FinancialTransactionSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- FinancialTransactionSerializer
show all
- Includes:
- ApplicationHelper
- Defined in:
- app/serializers/financial_transaction_serializer.rb
Instance Method Summary
collapse
#base_errors, #bootstrap_flash_patched, #close_button, #expand, #foodcoop_css_path, #foodcoop_css_tag, #format_currency, #format_date, #format_datetime, #format_datetime_timespec, #format_iban, #format_roles, #format_time, #heading_helper, #icon, #items_per_page, #link_to_gmaps, #link_to_top, #pagination_links_remote, #remote_link_to, #show_title?, #show_user, #show_user_link, #sort_link_helper, #tab_is_active?, #title, #truncate, #weekday
Methods included from PathHelper
#finance_group_transactions_path
Instance Method Details
#amount ⇒ Object
15
16
17
|
# File 'app/serializers/financial_transaction_serializer.rb', line 15
def amount
object.amount.to_f
end
|
#financial_transaction_type_name ⇒ Object
11
12
13
|
# File 'app/serializers/financial_transaction_serializer.rb', line 11
def financial_transaction_type_name
object.financial_transaction_type.name
end
|
#user_name ⇒ Object
7
8
9
|
# File 'app/serializers/financial_transaction_serializer.rb', line 7
def user_name
show_user object.user
end
|