Class: EML::UK::Payload::Card::Register
- Inherits:
-
EML::UK::Payload
- Object
- Payload
- EML::UK::Payload
- EML::UK::Payload::Card::Register
- Includes:
- ISO
- Defined in:
- lib/eml/uk/payload/card/register.rb
Constant Summary collapse
- REQUIRED_VALUES =
T.let( %i[first_name last_name address1 city country email].freeze, T::Array[Symbol] )
Constants inherited from Payload
Instance Method Summary collapse
-
#initialize(payload) ⇒ Register
constructor
A new instance of Register.
Methods inherited from EML::UK::Payload
Methods inherited from Payload
Constructor Details
#initialize(payload) ⇒ Register
Returns a new instance of Register.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/eml/uk/payload/card/register.rb', line 18 def initialize(payload) super @first_name = T.let(nil, T.nilable(String)) @last_name = T.let(nil, T.nilable(String)) @address1 = T.let(nil, T.nilable(String)) @address2 = T.let(nil, T.nilable(String)) @city = T.let(nil, T.nilable(String)) @dob = T.let(nil, T.nilable(T.any(Date, String, Time))) @email = T.let(nil, T.nilable(String)) @phone = T.let(nil, T.nilable(String)) end |