Method: Codebot::Request#each_network

Defined in:
lib/codebot/request.rb

#each_network {|the, channels| ... } ⇒ Object

Invokes the given block for each network this request needs to be delivered to.

Yield Parameters:

  • the (Network)

    network

  • channels (Array<Channels>)

    that belong to the network and that a notification should be delivered to



37
38
39
40
41
# File 'lib/codebot/request.rb', line 37

def each_network
  integration.channels.group_by(&:network).each do |network, channels|
    yield network, channels
  end
end