Class: Stripe::PaymentMethod::CreateParams::Rechnung::Dob

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(day: nil, month: nil, year: nil) ⇒ Dob

Returns a new instance of Dob.



1056
1057
1058
1059
1060
# File 'lib/stripe/resources/payment_method.rb', line 1056

def initialize(day: nil, month: nil, year: nil)
  @day = day
  @month = month
  @year = year
end

Instance Attribute Details

#dayObject

The day of birth, between 1 and 31.



1050
1051
1052
# File 'lib/stripe/resources/payment_method.rb', line 1050

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



1052
1053
1054
# File 'lib/stripe/resources/payment_method.rb', line 1052

def month
  @month
end

#yearObject

The four-digit year of birth.



1054
1055
1056
# File 'lib/stripe/resources/payment_method.rb', line 1054

def year
  @year
end