Sha256: ceeb9b211e2a923b77630cdeb45f56b80b15101d59362add3ca181fff829a4d6
Contents?: true
Size: 276 Bytes
Versions: 1
Compression:
Stored size: 276 Bytes
Contents
class HandPayment < Payment after_initialize if: :new_record? do |lb| self.payment_uuid = UidHelper.nsec_uuid('PAY') end def assign_detail(params) self.notified_at = Time.now self.total_amount = params[:total_amount] self.state = 'completed' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_trade-0.0.1 | app/models/rails_trade/payments/hand_payment.rb |