Class: GustoEmbedded::Models::Operations::PostV1EmployeesEmployeeIdHomeAddressesRequestBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/post_v1_employees_employee_id_home_addresses_requestbody.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(street_1: nil, city: nil, state: nil, zip: nil, courtesy_withholding: nil, street_2: nil, effective_date: nil) ⇒ PostV1EmployeesEmployeeIdHomeAddressesRequestBody

Returns a new instance of PostV1EmployeesEmployeeIdHomeAddressesRequestBody.



31
32
33
34
35
36
37
38
39
# File 'lib/gusto_embedded/models/operations/post_v1_employees_employee_id_home_addresses_requestbody.rb', line 31

def initialize(street_1: nil, city: nil, state: nil, zip: nil, courtesy_withholding: nil, street_2: nil, effective_date: nil)
  @street_1 = street_1
  @city = city
  @state = state
  @zip = zip
  @courtesy_withholding = courtesy_withholding
  @street_2 = street_2
  @effective_date = effective_date
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/gusto_embedded/models/operations/post_v1_employees_employee_id_home_addresses_requestbody.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @street_1 == other.street_1
  return false unless @city == other.city
  return false unless @state == other.state
  return false unless @zip == other.zip
  return false unless @courtesy_withholding == other.courtesy_withholding
  return false unless @street_2 == other.street_2
  return false unless @effective_date == other.effective_date
  true
end