Class: MethodRuby::Models::EntityIndividual

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/entity_individual.rb,
sig/method_ruby/models/entity_individual.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(dob: nil, email: nil, first_name: nil, last_name: nil, phone: nil, ssn: nil, ssn_4: nil) ⇒ Object

Parameters:

  • dob (Date, nil) (defaults to: nil) —

    Date of birth of the individual (YYYY-MM-DD).

  • email (String, nil) (defaults to: nil) —

    Email address of the individual.

  • first_name (String, nil) (defaults to: nil) —

    First name of the individual.

  • last_name (String, nil) (defaults to: nil) —

    Last name of the individual.

  • phone (String, nil) (defaults to: nil) —

    Phone number of the individual.

  • ssn (String, nil) (defaults to: nil) —

    Social security number (masked).

  • ssn_4 (String, nil) (defaults to: nil) —

    Last 4 digits of SSN (masked).



# File 'lib/method_ruby/models/entity_individual.rb', line 48

Instance Attribute Details

#dob ⇒ Date?

Date of birth of the individual (YYYY-MM-DD).

Parameters:

  • value (Date, nil)

Returns:

  • (Date, nil)


10
# File 'lib/method_ruby/models/entity_individual.rb', line 10

optional :dob, Date, nil?: true

#email ⇒ String?

Email address of the individual.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


16
# File 'lib/method_ruby/models/entity_individual.rb', line 16

optional :email, String, nil?: true

#first_name ⇒ String?

First name of the individual.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


22
# File 'lib/method_ruby/models/entity_individual.rb', line 22

optional :first_name, String, nil?: true

#last_name ⇒ String?

Last name of the individual.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


28
# File 'lib/method_ruby/models/entity_individual.rb', line 28

optional :last_name, String, nil?: true

#phone ⇒ String?

Phone number of the individual.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


34
# File 'lib/method_ruby/models/entity_individual.rb', line 34

optional :phone, String, nil?: true

#ssn ⇒ String?

Social security number (masked).

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


40
# File 'lib/method_ruby/models/entity_individual.rb', line 40

optional :ssn, String, nil?: true

#ssn_4 ⇒ String?

Last 4 digits of SSN (masked).

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


46
# File 'lib/method_ruby/models/entity_individual.rb', line 46

optional :ssn_4, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


39
# File 'sig/method_ruby/models/entity_individual.rbs', line 39

def to_hash: -> {