Class: Stripe::TokenService::CreateParams::Person::Dob

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/token_service.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.



838
839
840
841
842
# File 'lib/stripe/services/token_service.rb', line 838

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.



832
833
834
# File 'lib/stripe/services/token_service.rb', line 832

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



834
835
836
# File 'lib/stripe/services/token_service.rb', line 834

def month
  @month
end

#yearObject

The four-digit year of birth.



836
837
838
# File 'lib/stripe/services/token_service.rb', line 836

def year
  @year
end