Class: GustoEmbedded::Models::Shared::CompanyAddress
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_address.rb
Overview
The representation of a company’s address in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(street_1: nil, city: nil, state: nil, zip: nil, inactive: nil, active: nil, street_2: nil, country: 'USA') ⇒ CompanyAddress
constructor
A new instance of CompanyAddress.
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, inactive: nil, active: nil, street_2: nil, country: 'USA') ⇒ CompanyAddress
Returns a new instance of CompanyAddress.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/gusto_embedded/models/shared/company_address.rb', line 33 def initialize(street_1: nil, city: nil, state: nil, zip: nil, inactive: nil, active: nil, street_2: nil, country: 'USA') @street_1 = street_1 @city = city @state = state @zip = zip @inactive = inactive @active = active @street_2 = street_2 @country = country end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/gusto_embedded/models/shared/company_address.rb', line 45 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 @inactive == other.inactive return false unless @active == other.active return false unless @street_2 == other.street_2 return false unless @country == other.country true end |