Class: GustoEmbedded::Models::Shared::Location
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Location
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/location.rb
Overview
The representation of an address in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version: nil, company_uuid: nil, phone_number: nil, street_1: nil, city: nil, state: nil, zip: nil, mailing_address: nil, filing_address: nil, created_at: nil, updated_at: nil, active: nil, inactive: nil, street_2: nil, country: 'USA') ⇒ Location
constructor
A new instance of Location.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version: nil, company_uuid: nil, phone_number: nil, street_1: nil, city: nil, state: nil, zip: nil, mailing_address: nil, filing_address: nil, created_at: nil, updated_at: nil, active: nil, inactive: nil, street_2: nil, country: 'USA') ⇒ Location
Returns a new instance of Location.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/gusto_embedded/models/shared/location.rb', line 49 def initialize(uuid:, version: nil, company_uuid: nil, phone_number: nil, street_1: nil, city: nil, state: nil, zip: nil, mailing_address: nil, filing_address: nil, created_at: nil, updated_at: nil, active: nil, inactive: nil, street_2: nil, country: 'USA') @uuid = uuid @version = version @company_uuid = company_uuid @phone_number = phone_number @street_1 = street_1 @city = city @state = state @zip = zip @mailing_address = mailing_address @filing_address = filing_address @created_at = created_at @updated_at = updated_at @active = active @inactive = inactive @street_2 = street_2 @country = country end |
Instance Method Details
#==(other) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/gusto_embedded/models/shared/location.rb', line 69 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 @company_uuid == other.company_uuid return false unless @phone_number == other.phone_number 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 @mailing_address == other.mailing_address return false unless @filing_address == other.filing_address return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @active == other.active return false unless @inactive == other.inactive return false unless @street_2 == other.street_2 return false unless @country == other.country true end |