Class: DingSDK::Models::Shared::DeliveryStatus

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(attempt_id: nil, attempt_number: nil, created_at: nil, originated_at: nil, status: nil, type: nil) ⇒ DeliveryStatus

Returns a new instance of DeliveryStatus.



37
38
39
40
41
42
43
44
# File 'lib/ding_sdk/models/shared/delivery_status.rb', line 37

def initialize(attempt_id: nil, attempt_number: nil, created_at: nil, originated_at: nil, status: nil, type: nil)
  @attempt_id = attempt_id
  @attempt_number = attempt_number
  @created_at = created_at
  @originated_at = originated_at
  @status = status
  @type = type
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
54
55
# File 'lib/ding_sdk/models/shared/delivery_status.rb', line 46

def ==(other)
  return false unless other.is_a? self.class
  return false unless @attempt_id == other.attempt_id
  return false unless @attempt_number == other.attempt_number
  return false unless @created_at == other.created_at
  return false unless @originated_at == other.originated_at
  return false unless @status == other.status
  return false unless @type == other.type
  true
end