Class: Moov::Models::Components::RTPTransactionDetails

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/rtptransactiondetails.rb

Overview

RTP specific details about the transaction.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(status:, network_response_code: nil, failure_code: nil, initiated_on: nil, completed_on: nil, failed_on: nil, accepted_without_posting_on: nil) ⇒ RTPTransactionDetails

Returns a new instance of RTPTransactionDetails.



32
33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/rtptransactiondetails.rb', line 32

def initialize(status:, network_response_code: nil, failure_code: nil, initiated_on: nil, completed_on: nil, failed_on: nil, accepted_without_posting_on: nil)
  @status = status
  @network_response_code = network_response_code
  @failure_code = failure_code
  @initiated_on = initiated_on
  @completed_on = completed_on
  @failed_on = failed_on
  @accepted_without_posting_on = accepted_without_posting_on
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/moov/models/components/rtptransactiondetails.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @status == other.status
  return false unless @network_response_code == other.network_response_code
  return false unless @failure_code == other.failure_code
  return false unless @initiated_on == other.initiated_on
  return false unless @completed_on == other.completed_on
  return false unless @failed_on == other.failed_on
  return false unless @accepted_without_posting_on == other.accepted_without_posting_on
  true
end