Permalink
Browse files

Updated.

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

0 comments on commit 9e8f96d

Please sign in to comment.