Class: Moov::Models::Components::CreateTransferSourceACH

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company_entry_description: nil, originating_company_name: nil, debit_hold_period: nil, sec_code: nil) ⇒ CreateTransferSourceACH

Returns a new instance of CreateTransferSourceACH.



26
27
28
29
30
31
# File 'lib/moov/models/components/createtransfersourceach.rb', line 26

def initialize(company_entry_description: nil, originating_company_name: nil, debit_hold_period: nil, sec_code: nil)
  @company_entry_description = company_entry_description
  @originating_company_name = originating_company_name
  @debit_hold_period = debit_hold_period
  @sec_code = sec_code
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/moov/models/components/createtransfersourceach.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_entry_description == other.company_entry_description
  return false unless @originating_company_name == other.originating_company_name
  return false unless @debit_hold_period == other.debit_hold_period
  return false unless @sec_code == other.sec_code
  true
end