Class: StackOne::Models::Shared::RejectedReason

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id: nil, label: nil, rejected_reason_type: nil, remote_id: nil, type: nil, unified_custom_fields: nil) ⇒ RejectedReason

Returns a new instance of RejectedReason.



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

def initialize(id: nil, label: nil, rejected_reason_type: nil, remote_id: nil, type: nil, unified_custom_fields: nil)
  @id = id
  @label = label
  @rejected_reason_type = rejected_reason_type
  @remote_id = remote_id
  @type = type
  @unified_custom_fields = unified_custom_fields
end

Instance Method Details

#==(other) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/stack_one/models/shared/rejectedreason.rb', line 41

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