Class: Stripe::TokenService::CreateParams::Account::Company::RegistrationDate

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) ⇒ RegistrationDate

Returns a new instance of RegistrationDate.



157
158
159
160
161
# File 'lib/stripe/services/token_service.rb', line 157

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

Instance Attribute Details

#dayObject

The day of registration, between 1 and 31.



151
152
153
# File 'lib/stripe/services/token_service.rb', line 151

def day
  @day
end

#monthObject

The month of registration, between 1 and 12.



153
154
155
# File 'lib/stripe/services/token_service.rb', line 153

def month
  @month
end

#yearObject

The four-digit year of registration.



155
156
157
# File 'lib/stripe/services/token_service.rb', line 155

def year
  @year
end