Class: Kombo::Models::Shared::ReviewCycle

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, remote_id:, changed_at:, name: nil, review_period_start_date: nil, remote_deleted_at: nil) ⇒ ReviewCycle

Returns a new instance of ReviewCycle.



32
33
34
35
36
37
38
39
# File 'lib/kombo/models/shared/review_cycle.rb', line 32

def initialize(id:, remote_id:, changed_at:, name: nil, review_period_start_date: nil, remote_deleted_at: nil)
  @id = id
  @remote_id = remote_id
  @changed_at = changed_at
  @name = name
  @review_period_start_date = review_period_start_date
  @remote_deleted_at = remote_deleted_at
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/kombo/models/shared/review_cycle.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @remote_id == other.remote_id
  return false unless @changed_at == other.changed_at
  return false unless @name == other.name
  return false unless @review_period_start_date == other.review_period_start_date
  return false unless @remote_deleted_at == other.remote_deleted_at
  true
end