Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
323 B
Raw Blame
class Trading212Item::SyncCompleteEvent
  attr_reader :trading212_item

  def initialize(trading212_item)
    @trading212_item = trading212_item
  end

  def broadcast
    trading212_item.accounts.each do |account|
      account.broadcast_sync_complete
    end

    trading212_item.family.broadcast_sync_complete
  end
end