Sha256: 3c5e48bf8db1bbec5aea2fbb683859926c854f0d9f6dffdc6ad685b66c57463f
Contents?: true
Size: 456 Bytes
Versions: 3
Compression:
Stored size: 456 Bytes
Contents
class StripeReview < StripeModelCallbacks::ApplicationRecord belongs_to :stripe_charge, optional: true, primary_key: "stripe_id" def self.stripe_class Stripe::Review end def assign_from_stripe(object) assign_attributes( stripe_charge_id: object.charge ) StripeModelCallbacks::AttributesAssignerService.execute!( model: self, stripe_model: object, attributes: %w[id created livemode open reason] ) end end
Version data entries
3 entries across 3 versions & 1 rubygems