Sha256: d30c58d7dd84e5ebbda121eea6dd61a69890ae0ad28d04f5e431d9cf2843da41
Contents?: true
Size: 664 Bytes
Versions: 281
Compression:
Stored size: 664 Bytes
Contents
module ForestLiana class StripePaymentSerializer include 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
281 entries across 281 versions & 1 rubygems