lib/biomart/dataset.rb in biomart-0.1.0 vs lib/biomart/dataset.rb in biomart-0.1.1

- old
+ new

@@ -135,9 +135,16 @@ } return biomart_xml end + # Simple heartbeat function to test that a Biomart server is online. + # Returns true/false. + def alive? + server = Biomart::Server.new( @url ) + return server.alive? + end + private # Utility function to retrieve and process the configuration # xml for a dataset def fetch_configuration \ No newline at end of file