Class: StackOne::Models::Shared::HrisUpdateEmployeeRequestDtoWorkLocation
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::HrisUpdateEmployeeRequestDtoWorkLocation
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/hrisupdateemployeerequestdto_work_location.rb
Overview
The employee work location
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(city: nil, country: nil, id: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil) ⇒ HrisUpdateEmployeeRequestDtoWorkLocation
constructor
A new instance of HrisUpdateEmployeeRequestDtoWorkLocation.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(city: nil, country: nil, id: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil) ⇒ HrisUpdateEmployeeRequestDtoWorkLocation
Returns a new instance of HrisUpdateEmployeeRequestDtoWorkLocation.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/hrisupdateemployeerequestdto_work_location.rb', line 37 def initialize(city: nil, country: nil, id: nil, name: nil, passthrough: nil, phone_number: nil, state: nil, street_1: nil, street_2: nil, zip_code: nil) @city = city @country = country @id = id @name = name @passthrough = passthrough @phone_number = phone_number @state = state @street_1 = street_1 @street_2 = street_2 @zip_code = zip_code end |
Instance Method Details
#==(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/stack_one/models/shared/hrisupdateemployeerequestdto_work_location.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @city == other.city return false unless @country == other.country return false unless @id == other.id return false unless @name == other.name return false unless @passthrough == other.passthrough return false unless @phone_number == other.phone_number return false unless @state == other.state return false unless @street_1 == other.street_1 return false unless @street_2 == other.street_2 return false unless @zip_code == other.zip_code true end |