Class: ForestLiana::StripeBankAccountSerializer
- Inherits:
-
Object
- Object
- ForestLiana::StripeBankAccountSerializer
- Includes:
- 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
27 28 29 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 27 def format_name(attribute_name) attribute_name.to_s end |
#relationship_related_link(attribute_name) ⇒ Object
39 40 41 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 39 def (attribute_name) nil end |
#relationship_self_link(attribute_name) ⇒ Object
35 36 37 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 35 def relationship_self_link(attribute_name) nil end |
#self_link ⇒ Object
19 20 21 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 19 def self_link "/forest#{super}" end |
#type ⇒ Object
23 24 25 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 23 def type @options[:context][:type] || 'stripe_bank_accounts' end |
#unformat_name(attribute_name) ⇒ Object
31 32 33 |
# File 'app/serializers/forest_liana/stripe_bank_account_serializer.rb', line 31 def unformat_name(attribute_name) attribute_name.to_s end |