Class: GustoEmbedded::Models::Shared::ContractorAddressUpdateBody
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorAddressUpdateBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_address_update_body.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(version:, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil) ⇒ ContractorAddressUpdateBody
constructor
A new instance of ContractorAddressUpdateBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(version:, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil) ⇒ ContractorAddressUpdateBody
Returns a new instance of ContractorAddressUpdateBody.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/contractor_address_update_body.rb', line 29 def initialize(version:, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil) @version = version @street_1 = street_1 @street_2 = street_2 @city = city @state = state @zip = zip end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/contractor_address_update_body.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @version == other.version return false unless @street_1 == other.street_1 return false unless @street_2 == other.street_2 return false unless @city == other.city return false unless @state == other.state return false unless @zip == other.zip true end |