Sha256: 1fe4dcfa1edf22eac2b3f3dbb1210b1d209d5f768af8c8b8a475f87b121e2f8e

Contents?: true

Size: 361 Bytes

Versions: 12

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Bckbn
  module Transaction
    BillingAddress = Struct.new(
      *%i[name address_line_1 city state country zip email phone], 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/billing_address.rb
bckbn-3.0.0 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-2.2.1 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-2.1.1 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-2.1.0 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-2.0.0 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-1.1.0 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-1.0.0 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-0.2.0 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-0.1.2 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-0.1.1 lib/bckbn/resources/transaction/models/billing_address.rb
bckbn-0.1.0 lib/bckbn/resources/transaction/models/billing_address.rb