Class: DingSDK::Models::Shared::Attempt

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(attempt_number: nil, capability: nil, content: nil, created_at: nil, id: nil, sender_id: nil, status: nil, type: nil) ⇒ Attempt

Returns a new instance of Attempt.



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

def initialize(attempt_number: nil, capability: nil, content: nil, created_at: nil, id: nil, sender_id: nil, status: nil, type: nil)
  @attempt_number = attempt_number
  @capability = capability
  @content = content
  @created_at = created_at
  @id = id
  @sender_id = sender_id
  @status = status
  @type = type
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/ding_sdk/models/shared/attempt.rb', line 52

def ==(other)
  return false unless other.is_a? self.class
  return false unless @attempt_number == other.attempt_number
  return false unless @capability == other.capability
  return false unless @content == other.content
  return false unless @created_at == other.created_at
  return false unless @id == other.id
  return false unless @sender_id == other.sender_id
  return false unless @status == other.status
  return false unless @type == other.type
  true
end