Class: GustoEmbedded::Models::Shared::CompanyLocationRequest
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyLocationRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_location_request.rb
Overview
Request body for creating a company location (company address).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(street_1:, city:, state:, zip:, phone_number:, mailing_address: nil, filing_address: nil, street_2: nil, country: 'USA') ⇒ CompanyLocationRequest
constructor
A new instance of CompanyLocationRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(street_1:, city:, state:, zip:, phone_number:, mailing_address: nil, filing_address: nil, street_2: nil, country: 'USA') ⇒ CompanyLocationRequest
Returns a new instance of CompanyLocationRequest.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gusto_embedded/models/shared/company_location_request.rb', line 35 def initialize(street_1:, city:, state:, zip:, phone_number:, mailing_address: nil, filing_address: nil, street_2: nil, country: 'USA') @street_1 = street_1 @city = city @state = state @zip = zip @phone_number = phone_number @mailing_address = mailing_address @filing_address = filing_address @street_2 = street_2 @country = country end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/company_location_request.rb', line 48 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 @phone_number == other.phone_number return false unless @mailing_address == other.mailing_address return false unless @filing_address == other.filing_address return false unless @street_2 == other.street_2 return false unless @country == other.country true end |