Sha256: 31d190af560c8e9a0adf48443262660f3bd9ba70e7ab92c8239dafa09e47034d
Contents?: true
Size: 677 Bytes
Versions: 119
Compression:
Stored size: 677 Bytes
Contents
module ForestLiana class StripePaymentSerializer include ForestAdmin::JSONAPI::Serializer attribute :description attribute :refunded attribute :currency attribute :status attribute :amount attribute :created has_one :customer def self_link "/forest#{super}" end def type @options[:context][:type] || 'stripe_payments' end def format_name(attribute_name) attribute_name.to_s end def unformat_name(attribute_name) attribute_name.to_s end def relationship_self_link(attribute_name) nil end def relationship_related_link(attribute_name) nil end end end
Version data entries
119 entries across 119 versions & 1 rubygems