Skip to content
A ruby gem interface to the services supplied by http://morphbank.net
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.document
.gitignore
README.rdoc
Rakefile
VERSION
init.rb

README.rdoc

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

Copyright © 2010 mjy. See LICENSE for details.

More information

You can’t perform that action at this time.