Module: RubyMorphbank

Defined in:
lib/rubyMorphbank.rb

Defined Under Namespace

Classes: Rmb, RubyMorphbankError

Constant Summary collapse

SERVICES_URI =
'http://services.morphbank.net/mb3/request?'

Instance Method Summary collapse

Instance Method Details

#metadata_hash_for_one_image(image_id) ⇒ Object

returns a Hash with properties set to values !! no attributes, nothing other than child elements of root (see extensions below) !!



38
39
40
# File 'lib/rubyMorphbank.rb', line 38

def (image_id)
  Rmb.new.request(:id => image_id, :format => 'svc', :objecttype => 'Image', :method => 'id', :limit => 1).get_response.doc.record('//object')
end