Class: GustoEmbedded::Models::Shared::ContractorAddress
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_address.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contractor_uuid: nil, active: nil, version: nil, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil, country: 'USA') ⇒ ContractorAddress
constructor
A new instance of ContractorAddress.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(contractor_uuid: nil, active: nil, version: nil, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil, country: 'USA') ⇒ ContractorAddress
Returns a new instance of ContractorAddress.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gusto_embedded/models/shared/contractor_address.rb', line 35 def initialize(contractor_uuid: nil, active: nil, version: nil, street_1: nil, street_2: nil, city: nil, state: nil, zip: nil, country: 'USA') @contractor_uuid = contractor_uuid @active = active @version = version @street_1 = street_1 @street_2 = street_2 @city = city @state = state @zip = zip @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/contractor_address.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @contractor_uuid == other.contractor_uuid return false unless @active == other.active 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 return false unless @country == other.country true end |