Sha256: 1bca2ebd88f00ca2a20185f37fc346ad14b1f739e37e497414824eb48c184ce6
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true module Bckbn module Transaction MEMBERS = %i[ account_number receiver sec_code description transaction_type amount service_type purpose client_identifier ].freeze Payment = Struct.new(*MEMBERS, keyword_init: true) do def initialize(opts) valid_opts = opts.slice(*members) valid_opts.each { |key, value| public_send("#{key}=", value) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems