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.



1035
1036
1037
1038
1039
# File 'lib/stripe/resources/payment_method.rb', line 1035

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.



1029
1030
1031
# File 'lib/stripe/resources/payment_method.rb', line 1029

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



1031
1032
1033
# File 'lib/stripe/resources/payment_method.rb', line 1031

def month
  @month
end

#yearObject

The four-digit year of birth.



1033
1034
1035
# File 'lib/stripe/resources/payment_method.rb', line 1033

def year
  @year
end