lib/turntabler/room_directory.rb
def with_friends
      data = api('room.directory_graph')
      data['rooms'].map do |(attrs, friends)|
        Room.new(client, attrs.merge(:friends => friends))
      end
    end
def with_friends
      data = api('room.directory_graph')
      data['rooms'].map do |(attrs, friends)|
        Room.new(client, attrs.merge(:friends => friends))
      end
    end
def with_friends data = api ( 'room.directory_graph' ) data [ 'rooms' ] . map do | ( attrs , friends ) | Room . new ( client , attrs . merge ( :friends => friends ) ) end end
Gets the rooms where the current user's friends are currently listening.

 @return [Array<Turntabler::Room>]
 @raise [Turntabler::Error] if the command fails
 @example
  rooms.with_friends   # => [#<Turntabler::Room ...>, ...]
Gets the rooms where the current user s friends are currently listening .