Class: Moov::Models::Components::WebhookDataSweepUpdated

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(wallet_id:, sweep_id:, status:, transfer_id: nil) ⇒ WebhookDataSweepUpdated

Returns a new instance of WebhookDataSweepUpdated.



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

def initialize(wallet_id:, sweep_id:, status:, transfer_id: nil)
  @wallet_id = wallet_id
  @sweep_id = sweep_id
  @status = status
  @transfer_id = transfer_id
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @wallet_id == other.wallet_id
  return false unless @sweep_id == other.sweep_id
  return false unless @status == other.status
  return false unless @transfer_id == other.transfer_id
  true
end