Class: GustoEmbedded::Models::Shared::WireInRequestUpdateRequestBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/wire_in_request_update_request_body.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(date_sent:, bank_name:, amount_sent:, additional_notes: nil) ⇒ WireInRequestUpdateRequestBody

Returns a new instance of WireInRequestUpdateRequestBody.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/wire_in_request_update_request_body.rb', line 25

def initialize(date_sent:, bank_name:, amount_sent:, additional_notes: nil)
  @date_sent = date_sent
  @bank_name = bank_name
  @amount_sent = amount_sent
  @additional_notes = additional_notes
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/wire_in_request_update_request_body.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @date_sent == other.date_sent
  return false unless @bank_name == other.bank_name
  return false unless @amount_sent == other.amount_sent
  return false unless @additional_notes == other.additional_notes
  true
end