lib/newrelic-management/manager.rb
def list_servers
      Util.cachier('list_servers') do
        Client.servers.sort_by { |hsh| hsh['last_reported_at'] }.collect do |server|
          {
            name: server['name'],
            last_reported_at: server['last_reported_at'],
            id: server['id'],
            reporting: server['reporting']
          }
        end
      end
    end
def list_servers
      Util.cachier('list_servers') do
        Client.servers.sort_by { |hsh| hsh['last_reported_at'] }.collect do |server|
          {
            name: server['name'],
            last_reported_at: server['last_reported_at'],
            id: server['id'],
            reporting: server['reporting']
          }
        end
      end
    end
def list_servers Util . cachier ( 'list_servers' ) do Client . servers . sort_by { | hsh | hsh [ 'last_reported_at' ] } . collect do | server | { name : server [ 'name' ] , last_reported_at : server [ 'last_reported_at' ] , id : server [ 'id' ] , reporting : server [ 'reporting' ] } end end end
=>    Servers    <= 

 => Servers with the oldest `last_reported_at` will be at the top
= > Servers < =