Sha256: aeb55d49904d0b081671a15789cc738880a3270b49f9a7fffc1448c6c40b9acc
Contents?: true
Size: 877 Bytes
Versions: 5
Compression:
Stored size: 877 Bytes
Contents
module ForestLiana class StripeInvoiceSerializer include JSONAPI::Serializer attribute :cancel_at_period_end attribute :canceled_at attribute :created attribute :current_period_end attribute :current_period_start attribute :ended_at attribute :livemode attribute :quantity attribute :start attribute :status attribute :tax_percent attribute :trial_end attribute :trial_start has_one :customer def self_link "/forest#{super}" end def type @options[:context][:type] || 'stripe_subscriptions' 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
5 entries across 5 versions & 1 rubygems