Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Assay Depot's officially supported Ruby SDK
tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
assaydepot.gemspec

README.md

AssayDepot

Ruby interface for Assay Depot's online laboratory (http://www.assaydepot.com).

Installation

Add this line to your application's Gemfile:

gem 'assaydepot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install assaydepot

Basic Usage

require 'assaydepot'
AssayDepot.configure do |config|
  config.auth_token = "1234567890"
  config.url = "http://localhost:3000/api"
end
wares = AssayDepot::Ware.find("Antibody")
wares.total

Using Facets

wares = AssayDepot::Ware.where(:ware_type => "CustomService")
wares.facets

Chainable Commands

wares = AssayDepot::Ware.where(:ware_type => "CustomService").where(:available_provider_names => "Assay Depot").page(2)
wares.first["name"]

Providers

providers = AssayDepot::Provider.where(:starts_with => "a").per_page(600)
providers.count

Get Details

providers = AssayDepot::Provider.where(:starts_with => "a")
AssayDepot::Provider.get(providers.first["id"])

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.