Class: GustoEmbedded::Models::Shared::EmployeeWorkAddress
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeeWorkAddress
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_work_address.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version:, effective_date: nil, active: nil, location_uuid: nil, employee_uuid: nil, street_1: nil, city: nil, state: nil, zip: nil, street_2: nil, country: 'USA') ⇒ EmployeeWorkAddress
constructor
A new instance of EmployeeWorkAddress.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version:, effective_date: nil, active: nil, location_uuid: nil, employee_uuid: nil, street_1: nil, city: nil, state: nil, zip: nil, street_2: nil, country: 'USA') ⇒ EmployeeWorkAddress
Returns a new instance of EmployeeWorkAddress.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gusto_embedded/models/shared/employee_work_address.rb', line 41 def initialize(uuid:, version:, effective_date: nil, active: nil, location_uuid: nil, employee_uuid: nil, street_1: nil, city: nil, state: nil, zip: nil, street_2: nil, country: 'USA') @uuid = uuid @version = version @effective_date = effective_date @active = active @location_uuid = location_uuid @employee_uuid = employee_uuid @street_1 = street_1 @city = city @state = state @zip = zip @street_2 = street_2 @country = country end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/gusto_embedded/models/shared/employee_work_address.rb', line 57 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 @effective_date == other.effective_date return false unless @active == other.active return false unless @location_uuid == other.location_uuid return false unless @employee_uuid == other.employee_uuid 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 @street_2 == other.street_2 return false unless @country == other.country true end |