Class: Moov::Models::Components::SentReceipt

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(receipt_id:, idempotency_key:, sent_on:) ⇒ SentReceipt

Returns a new instance of SentReceipt.



24
25
26
27
28
# File 'lib/moov/models/components/sentreceipt.rb', line 24

def initialize(receipt_id:, idempotency_key:, sent_on:)
  @receipt_id = receipt_id
  @idempotency_key = idempotency_key
  @sent_on = sent_on
end

Instance Method Details

#==(other) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/moov/models/components/sentreceipt.rb', line 31

def ==(other)
  return false unless other.is_a? self.class
  return false unless @receipt_id == other.receipt_id
  return false unless @idempotency_key == other.idempotency_key
  return false unless @sent_on == other.sent_on
  true
end