Class: GustoEmbedded::Models::Shared::CompanyHomeAddress
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyHomeAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_home_address.rb
Overview
The company’s primary signatory’s home address.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(street_1: nil, city: nil, state: nil, zip: nil, country: nil, street_2: nil) ⇒ CompanyHomeAddress
constructor
A new instance of CompanyHomeAddress.
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, country: nil, street_2: nil) ⇒ CompanyHomeAddress
Returns a new instance of CompanyHomeAddress.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/company_home_address.rb', line 29 def initialize(street_1: nil, city: nil, state: nil, zip: nil, country: nil, street_2: nil) @street_1 = street_1 @city = city @state = state @zip = zip @country = country @street_2 = street_2 end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/company_home_address.rb', line 39 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 @country == other.country return false unless @street_2 == other.street_2 true end |