Class: VitableConnect::Models::Employer::Address

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/vitable_connect/models/employer.rb

Overview

See Also:

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(address_line_1:, city:, state:, zipcode:, address_line_2: nil) ⇒ Object

Nested address within EmployerSerializer.

Parameters:

  • address_line_1 (String)

    Primary street address

  • city (String)

    City name

  • state (String)

    Two-letter state code (e.g., CA, NY)

  • zipcode (String)

    ZIP code (5 or 9 digit)

  • address_line_2 (String, nil) (defaults to: nil)

    Secondary street address (apt, suite, etc.)



# File 'lib/vitable_connect/models/employer.rb', line 148

Instance Attribute Details

#address_line_1String

Primary street address

Returns:

  • (String)


122
# File 'lib/vitable_connect/models/employer.rb', line 122

required :address_line_1, String

#address_line_2String?

Secondary street address (apt, suite, etc.)

Returns:

  • (String, nil)


146
# File 'lib/vitable_connect/models/employer.rb', line 146

optional :address_line_2, String, nil?: true

#cityString

City name

Returns:

  • (String)


128
# File 'lib/vitable_connect/models/employer.rb', line 128

required :city, String

#stateString

Two-letter state code (e.g., CA, NY)

Returns:

  • (String)


134
# File 'lib/vitable_connect/models/employer.rb', line 134

required :state, String

#zipcodeString

ZIP code (5 or 9 digit)

Returns:

  • (String)


140
# File 'lib/vitable_connect/models/employer.rb', line 140

required :zipcode, String