Class: StackOne::Models::Shared::HomeLocation
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::HomeLocation
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/home_location.rb
Overview
The employee home location
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, remote_employee_id: nil, remote_id: nil, state: nil, street_1: nil, street_2: nil, unified_custom_fields: nil, updated_at: nil, zip_code: nil) ⇒ HomeLocation
constructor
A new instance of HomeLocation.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, remote_employee_id: nil, remote_id: nil, state: nil, street_1: nil, street_2: nil, unified_custom_fields: nil, updated_at: nil, zip_code: nil) ⇒ HomeLocation
Returns a new instance of HomeLocation.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/stack_one/models/shared/home_location.rb', line 49 def initialize(city: nil, country: nil, created_at: nil, employee_id: nil, id: nil, location_type: nil, name: nil, phone_number: nil, remote_employee_id: nil, remote_id: nil, state: nil, street_1: nil, street_2: nil, unified_custom_fields: nil, updated_at: nil, zip_code: nil) @city = city @country = country @created_at = created_at @employee_id = employee_id @id = id @location_type = location_type @name = name @phone_number = phone_number @remote_employee_id = remote_employee_id @remote_id = remote_id @state = state @street_1 = street_1 @street_2 = street_2 @unified_custom_fields = unified_custom_fields @updated_at = updated_at @zip_code = zip_code end |
Instance Method Details
#==(other) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/stack_one/models/shared/home_location.rb', line 69 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 @created_at == other.created_at return false unless @employee_id == other.employee_id return false unless @id == other.id return false unless @location_type == other.location_type return false unless @name == other.name return false unless @phone_number == other.phone_number return false unless @remote_employee_id == other.remote_employee_id return false unless @remote_id == other.remote_id 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 @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at return false unless @zip_code == other.zip_code true end |