lib/betagouvbot/badge_request.rb
def call(members, member_id)
        members
          .select { |author| author[:id] == member_id }
          .flat_map { |member| request_badge(member) }
      end
# Input: community members
# Side-effect: emails badge requests
community members
Side-effect: emails badge requests
community members Side - effect : emails badge requests
def call(members, member_id)
        members
          .select { |author| author[:id] == member_id }
          .flat_map { |member| request_badge(member) }
      end
def call ( members , member_id ) members . select { | author | author [ :id ] == member_id } . flat_map { | member | request_badge ( member ) } end
Input: community members
Side-effect: emails badge requests
Input : community members Side - effect : emails badge requests
members
member_id