Class: Bckbn::Transaction::Payment

Inherits:
Struct
  • Object
show all
Defined in:
lib/bckbn/resources/transactions/models/payment.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Payment

Returns a new instance of Payment.



18
19
20
21
# File 'lib/bckbn/resources/transactions/models/payment.rb', line 18

def initialize(opts)
  valid_opts = opts.slice(*members)
  valid_opts.each { |key, value| public_send("#{key}=", value) }
end