Class: Stripe::AccountPersonService::CreateParams::Dob

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



706
707
708
709
710
# File 'lib/stripe/services/account_person_service.rb', line 706

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.



698
699
700
# File 'lib/stripe/services/account_person_service.rb', line 698

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



701
702
703
# File 'lib/stripe/services/account_person_service.rb', line 701

def month
  @month
end

#yearObject

The four-digit year of birth.



704
705
706
# File 'lib/stripe/services/account_person_service.rb', line 704

def year
  @year
end