Class: Moov::Models::Components::GeneratedBy

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

Overview

The entity that generated the fee.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(transfer_id: nil, card_id: nil, dispute_id: nil, account_id: nil, bank_account_id: nil) ⇒ GeneratedBy

Returns a new instance of GeneratedBy.



27
28
29
30
31
32
33
# File 'lib/moov/models/components/generatedby.rb', line 27

def initialize(transfer_id: nil, card_id: nil, dispute_id: nil, account_id: nil, bank_account_id: nil)
  @transfer_id = transfer_id
  @card_id = card_id
  @dispute_id = dispute_id
  @account_id = 
  @bank_account_id = 
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/generatedby.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @transfer_id == other.transfer_id
  return false unless @card_id == other.card_id
  return false unless @dispute_id == other.dispute_id
  return false unless @account_id == other.
  return false unless @bank_account_id == other.
  true
end