Class: Stripe::PaymentMethod::UpdateParams::Card

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/payment_method.rb

Defined Under Namespace

Classes: Networks

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(exp_month: nil, exp_year: nil, networks: nil) ⇒ Card

Returns a new instance of Card.



1426
1427
1428
1429
1430
# File 'lib/stripe/resources/payment_method.rb', line 1426

def initialize(exp_month: nil, exp_year: nil, networks: nil)
  @exp_month = exp_month
  @exp_year = exp_year
  @networks = networks
end

Instance Attribute Details

#exp_monthObject

Two-digit number representing the card’s expiration month.



1420
1421
1422
# File 'lib/stripe/resources/payment_method.rb', line 1420

def exp_month
  @exp_month
end

#exp_yearObject

Four-digit number representing the card’s expiration year.



1422
1423
1424
# File 'lib/stripe/resources/payment_method.rb', line 1422

def exp_year
  @exp_year
end

#networksObject

Contains information about card networks used to process the payment.



1424
1425
1426
# File 'lib/stripe/resources/payment_method.rb', line 1424

def networks
  @networks
end