Class: StackOne::Models::Shared::ApplicationChangesDataModel

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(application_status: nil, interview_stage_id: nil, rejected_reason_ids: nil) ⇒ ApplicationChangesDataModel

Returns a new instance of ApplicationChangesDataModel.



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

def initialize(application_status: nil, interview_stage_id: nil, rejected_reason_ids: nil)
  @application_status = application_status
  @interview_stage_id = interview_stage_id
  @rejected_reason_ids = rejected_reason_ids
end

Instance Method Details

#==(other) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/stack_one/models/shared/applicationchangesdatamodel.rb', line 32

def ==(other)
  return false unless other.is_a? self.class
  return false unless @application_status == other.application_status
  return false unless @interview_stage_id == other.interview_stage_id
  return false unless @rejected_reason_ids == other.rejected_reason_ids
  true
end