Class: Kombo::Models::Shared::WorkLocation
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::WorkLocation
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/work_location.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, changed_at:, remote_id: nil, name: nil, type: nil, remote_deleted_at: nil, address: nil) ⇒ WorkLocation
constructor
A new instance of WorkLocation.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, changed_at:, remote_id: nil, name: nil, type: nil, remote_deleted_at: nil, address: nil) ⇒ WorkLocation
Returns a new instance of WorkLocation.
33 34 35 36 37 38 39 40 41 |
# File 'lib/kombo/models/shared/work_location.rb', line 33 def initialize(id:, changed_at:, remote_id: nil, name: nil, type: nil, remote_deleted_at: nil, address: nil) @id = id @changed_at = changed_at @remote_id = remote_id @name = name @type = type @remote_deleted_at = remote_deleted_at @address = address end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/kombo/models/shared/work_location.rb', line 44 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @changed_at == other.changed_at return false unless @remote_id == other.remote_id return false unless @name == other.name return false unless @type == other.type return false unless @remote_deleted_at == other.remote_deleted_at return false unless @address == other.address true end |