Class: ForestLiana::StripeBankAccountSerializer
- Inherits:
-
Object
- Object
- ForestLiana::StripeBankAccountSerializer
- Includes:
- ForestAdmin::JSONAPI::Serializer
- Defined in:
- app/serializers/forest_liana/stripe_bank_account_serializer.rb
Instance Method Summary collapse
- #format_name(attribute_name) ⇒ Object
- #relationship_related_link(attribute_name) ⇒ Object
- #relationship_self_link(attribute_name) ⇒ Object
- #self_link ⇒ Object
- #type ⇒ Object
- #unformat_name(attribute_name) ⇒ Object
Instance Method Details
#format_name(attribute_name) ⇒ Object
25 26 27 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 25 def format_name(attribute_name) attribute_name.to_s end |
#relationship_related_link(attribute_name) ⇒ Object
37 38 39 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 37 def (attribute_name) nil end |
#relationship_self_link(attribute_name) ⇒ Object
33 34 35 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 33 def relationship_self_link(attribute_name) nil end |
#self_link ⇒ Object
17 18 19 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 17 def self_link "/forest#{super}" end |
#type ⇒ Object
21 22 23 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 21 def type @options[:context][:type] || 'stripe_bank_accounts' end |
#unformat_name(attribute_name) ⇒ Object
29 30 31 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 29 def unformat_name(attribute_name) attribute_name.to_s end |