Permalink
Browse files

Updated.

  • Loading branch information...
nakao committed Jul 21, 2012
1 parent 1bf5859 commit 9e8f96d8eb445418a3e5683cc72f5761115bff0e
Showing with 14 additions and 12 deletions.
  1. +14 −12 README.md
View
@@ -6,25 +6,27 @@
REST API Client REST API Client
```# Show a web service URI ```ruby
BioChEMBL::REST::ChEMBL_URI.compound("CHEMBL1") # Show a web service URI
BioChEMBL::REST::ChEMBL_URI.compound("CHEMBL1")
# GET the XML data of the ChEMBL ID CHEMBL1 # GET the XML data of the ChEMBL ID CHEMBL1
api = BioChEMBL::REST.new api = BioChEMBL::REST.new
api.compound("CHEMBL1") api.compound("CHEMBL1")
``` ```
Parser and container Parser and container
```cpd = BioChEMBL::Compound.find("CHEMBL1") ```ruby
cpd.chemblId #=> "CHEMBL1" cpd = BioChEMBL::Compound.find("CHEMBL1")
cpd.slimes cpd.chemblId #=> "CHEMBL1"
cpd.slimes
ba = cpd.bioactivities ba = cpd.bioactivities
assay = BioChEMBL::Assay.find("CHEMBL1217643") assay = BioChEMBL::Assay.find("CHEMBL1217643")
assay.bioactivities[0].target assay.bioactivities[0].target
assay.bioactivities[0].parent_compound assay.bioactivities[0].parent_compound
``` ```
Note: this software is under active development! Note: this software is under active development!

0 comments on commit 9e8f96d

Please sign in to comment.