Class: Kombo::Models::Shared::GetHrisLegalEntitiesPositiveResponseAddress

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

Overview

The legal entity’s address.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(city: nil, country: nil, raw: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil) ⇒ GetHrisLegalEntitiesPositiveResponseAddress

Returns a new instance of GetHrisLegalEntitiesPositiveResponseAddress.



31
32
33
34
35
36
37
38
39
# File 'lib/kombo/models/shared/gethrislegalentitiespositiveresponse_address.rb', line 31

def initialize(city: nil, country: nil, raw: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil)
  @city = city
  @country = country
  @raw = raw
  @state = state
  @street_1 = street_1
  @street_2 = street_2
  @zip_code = zip_code
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/kombo/models/shared/gethrislegalentitiespositiveresponse_address.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @city == other.city
  return false unless @country == other.country
  return false unless @raw == other.raw
  return false unless @state == other.state
  return false unless @street_1 == other.street_1
  return false unless @street_2 == other.street_2
  return false unless @zip_code == other.zip_code
  true
end