Class: StackOne::Models::Shared::HrisUpdateEmploymentRequestDtoContractType

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rb

Overview

The employment work schedule type

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(contract_type: nil, id: nil, label: nil, remote_id: nil) ⇒ HrisUpdateEmploymentRequestDtoContractType

Returns a new instance of HrisUpdateEmploymentRequestDtoContractType.



25
26
27
28
29
30
# File 'lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rb', line 25

def initialize(contract_type: nil, id: nil, label: nil, remote_id: nil)
  @contract_type = contract_type
  @id = id
  @label = label
  @remote_id = remote_id
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/stack_one/models/shared/hrisupdateemploymentrequestdto_contract_type.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @contract_type == other.contract_type
  return false unless @id == other.id
  return false unless @label == other.label
  return false unless @remote_id == other.remote_id
  true
end