lib/newrelic-management/client.rb
def get_server_id(server_id)
      return nil unless server_id =~ /^[0-9]+$/
      ret = nr_api.get(url('servers', server_id)).body
      ret['server']
    rescue Faraday::ResourceNotFound, NoMethodError
      nil
    end
def get_server_id(server_id)
      return nil unless server_id =~ /^[0-9]+$/
      ret = nr_api.get(url('servers', server_id)).body
      ret['server']
    rescue Faraday::ResourceNotFound, NoMethodError
      nil
    end
def get_server_id ( server_id ) return nil unless server_id =~ / / ret = nr_api . get ( url ( 'servers' , server_id ) ) . body ret [ 'server' ] rescue Faraday :: ResourceNotFound , NoMethodError nil end
=> Get a Server based on ID
= > Get a Server based on ID