Class: Moov::Models::Components::ReceiptResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(receipt_id:, created_by:, kind:, disabled_on: nil, email: nil, email_account_id: nil, for_transfer_id: nil, for_schedule_id: nil, for_occurrence_id: nil, sent_for: nil) ⇒ ReceiptResponse

Returns a new instance of ReceiptResponse.



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

def initialize(receipt_id:, created_by:, kind:, disabled_on: nil, email: nil, email_account_id: nil, for_transfer_id: nil, for_schedule_id: nil, for_occurrence_id: nil, sent_for: nil)
  @receipt_id = receipt_id
  @created_by = created_by
  @kind = kind
  @disabled_on = disabled_on
  @email = email
   = 
  @for_transfer_id = for_transfer_id
  @for_schedule_id = for_schedule_id
  @for_occurrence_id = for_occurrence_id
  @sent_for = sent_for
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/moov/models/components/receiptresponse.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @receipt_id == other.receipt_id
  return false unless @created_by == other.created_by
  return false unless @kind == other.kind
  return false unless @disabled_on == other.disabled_on
  return false unless @email == other.email
  return false unless  == other.
  return false unless @for_transfer_id == other.for_transfer_id
  return false unless @for_schedule_id == other.for_schedule_id
  return false unless @for_occurrence_id == other.for_occurrence_id
  return false unless @sent_for == other.sent_for
  true
end