Class: GustoEmbedded::Models::Shared::EmployeeHomeAddress

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(active: nil, uuid: nil, id: nil, effective_from: nil, effective_to: nil, effective_date: nil, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil, country: 'USA') ⇒ EmployeeHomeAddress

Returns a new instance of EmployeeHomeAddress.



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

def initialize(active: nil, uuid: nil, id: nil, effective_from: nil, effective_to: nil, effective_date: nil, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil, country: 'USA')
  @active = active
  @uuid = uuid
  @id = id
  @effective_from = effective_from
  @effective_to = effective_to
  @effective_date = effective_date
  @street_1 = street_1
  @street_2 = street_2
  @city = city
  @state = state
  @zip = zip
  @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_home_address.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @active == other.active
  return false unless @uuid == other.uuid
  return false unless @id == other.id
  return false unless @effective_from == other.effective_from
  return false unless @effective_to == other.effective_to
  return false unless @effective_date == other.effective_date
  return false unless @street_1 == other.street_1
  return false unless @street_2 == other.street_2
  return false unless @city == other.city
  return false unless @state == other.state
  return false unless @zip == other.zip
  return false unless @country == other.country
  true
end