Class: Stripe::PaymentMethod::UpdateParams::Card
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentMethod::UpdateParams::Card
- Defined in:
- lib/stripe/resources/payment_method.rb
Defined Under Namespace
Classes: Networks
Instance Attribute Summary collapse
-
#exp_month ⇒ Object
Two-digit number representing the card’s expiration month.
-
#exp_year ⇒ Object
Four-digit number representing the card’s expiration year.
-
#networks ⇒ Object
Contains information about card networks used to process the payment.
Instance Method Summary collapse
-
#initialize(exp_month: nil, exp_year: nil, networks: nil) ⇒ Card
constructor
A new instance of Card.
Methods inherited from RequestParams
Constructor Details
#initialize(exp_month: nil, exp_year: nil, networks: nil) ⇒ Card
Returns a new instance of Card.
1361 1362 1363 1364 1365 |
# File 'lib/stripe/resources/payment_method.rb', line 1361 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_month ⇒ Object
Two-digit number representing the card’s expiration month.
1355 1356 1357 |
# File 'lib/stripe/resources/payment_method.rb', line 1355 def exp_month @exp_month end |
#exp_year ⇒ Object
Four-digit number representing the card’s expiration year.
1357 1358 1359 |
# File 'lib/stripe/resources/payment_method.rb', line 1357 def exp_year @exp_year end |
#networks ⇒ Object
Contains information about card networks used to process the payment.
1359 1360 1361 |
# File 'lib/stripe/resources/payment_method.rb', line 1359 def networks @networks end |