Class: Stripe::Token::CreateParams::Account::Company::RegistrationDate

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



175
176
177
178
179
# File 'lib/stripe/resources/token.rb', line 175

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.



169
170
171
# File 'lib/stripe/resources/token.rb', line 169

def day
  @day
end

#monthObject

The month of registration, between 1 and 12.



171
172
173
# File 'lib/stripe/resources/token.rb', line 171

def month
  @month
end

#yearObject

The four-digit year of registration.



173
174
175
# File 'lib/stripe/resources/token.rb', line 173

def year
  @year
end