Sha256: 2c7a7e0eadcc4419a9480887d10a44e62d9382b538cb100ba45584c2e46a0ea3

Contents?: true

Size: 325 Bytes

Versions: 12

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

module Bckbn
  module Transaction
    Card = Struct.new(*%i[type number exp_date card_validation_num], 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

12 entries across 12 versions & 1 rubygems

Version Path
bckbn-3.0.1 lib/bckbn/resources/transactions/models/card.rb
bckbn-3.0.0 lib/bckbn/resources/transaction/models/card.rb
bckbn-2.2.1 lib/bckbn/resources/transaction/models/card.rb
bckbn-2.1.1 lib/bckbn/resources/transaction/models/card.rb
bckbn-2.1.0 lib/bckbn/resources/transaction/models/card.rb
bckbn-2.0.0 lib/bckbn/resources/transaction/models/card.rb
bckbn-1.1.0 lib/bckbn/resources/transaction/models/card.rb
bckbn-1.0.0 lib/bckbn/resources/transaction/models/card.rb
bckbn-0.2.0 lib/bckbn/resources/transaction/models/card.rb
bckbn-0.1.2 lib/bckbn/resources/transaction/models/card.rb
bckbn-0.1.1 lib/bckbn/resources/transaction/models/card.rb
bckbn-0.1.0 lib/bckbn/resources/transaction/models/card.rb