rubyMorphbank

Description

rubyMorphbank is a request/response Ruby gem library for the Morphbank (morphbank.net) API.

Installation

gem install rubyMorphbank

Usage

See the tests (test/test_rubyMorphbank.rb) for usage.

Basic pattern

request = Rmb.new.request 
response = request.get_response

Return the request URL

request = Rmb.new.request 
request.request_url             # => "http://services.morphbank.net/mb3/request?method=search&depth=1&firstResult=0&format=id&keywords=&limit=10&objecttype=Image"

Return a link to a thumbnail in a call for a single image

foo =  Rmb.new.request(:format => 'svc', :id => 195815, :method => 'id')
uri = foo.get_response.get_text('thumbUrl')

Copyright © 2010 mjy. See LICENSE for details.

More information