Class: MethodRuby::Models::EntityCorporation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/entity_corporation.rb,
sig/method_ruby/models/entity_corporation.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(dba: nil, ein: nil, name: nil, owners: nil) ⇒ Object

Parameters:

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

    Doing business as name.

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

    Employer Identification Number.

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

    Legal name of the corporation.

  • owners (Array<MethodRuby::Models::EntityCorporationOwner>, nil) (defaults to: nil) —

    List of beneficial owners.



# File 'lib/method_ruby/models/entity_corporation.rb', line 32

Instance Attribute Details

#dba ⇒ String?

Doing business as name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :dba, String, nil?: true

#ein ⇒ String?

Employer Identification Number.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :ein, String, nil?: true

#name ⇒ String?

Legal name of the corporation.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :name, String, nil?: true

#owners ⇒ Array<MethodRuby::Models::EntityCorporationOwner>?

List of beneficial owners.

Parameters:

Returns:



28
29
30
# File 'lib/method_ruby/models/entity_corporation.rb', line 28

optional :owners,
-> { MethodRuby::Internal::Type::ArrayOf[MethodRuby::EntityCorporationOwner] },
nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


27
# File 'sig/method_ruby/models/entity_corporation.rbs', line 27

def to_hash: -> {