Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A ruby gem interface to the services supplied by http://morphbank.net

Resources

Packages

No packages published

Languages