Class: GustoEmbedded::Models::Shared::EmployeeAddress

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, version:, employee_uuid: nil, effective_date: nil, courtesy_withholding: nil, street_1: nil, city: nil, state: nil, zip: nil, active: nil, street_2: nil, country: 'USA') ⇒ EmployeeAddress

Returns a new instance of EmployeeAddress.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/gusto_embedded/models/shared/employee_address.rb', line 41

def initialize(uuid:, version:, employee_uuid: nil, effective_date: nil, courtesy_withholding: nil, street_1: nil, city: nil, state: nil, zip: nil, active: nil, street_2: nil, country: 'USA')
  @uuid = uuid
  @version = version
  @employee_uuid = employee_uuid
  @effective_date = effective_date
  @courtesy_withholding = courtesy_withholding
  @street_1 = street_1
  @city = city
  @state = state
  @zip = zip
  @active = active
  @street_2 = street_2
  @country = country
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/gusto_embedded/models/shared/employee_address.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @version == other.version
  return false unless @employee_uuid == other.employee_uuid
  return false unless @effective_date == other.effective_date
  return false unless @courtesy_withholding == other.courtesy_withholding
  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 @active == other.active
  return false unless @street_2 == other.street_2
  return false unless @country == other.country
  true
end