Sha256: db701f6a25260950e41d776c2b2a6692b5d0b50653d12cfe17f79022ca039f55

Contents?: true

Size: 757 Bytes

Versions: 2

Compression:

Stored size: 757 Bytes

Contents

module Transcriptic
  class API

    # DELETE /:organization/sequences/:sequence
    def delete_sequence(organization, sequence)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/#{organization}/sequences/#{sequence}"
      )
    end

    # GET /:organization/sequences
    def get_sequences(organization)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/#{organization}/sequences"
      )
    end

    # POST /:organization/sequences
    def post_domain(organization, sequence)
      request(
        :expects  => 201,
        :method   => :post,
        :path     => "/#{organization}/sequences",
        :query    => {'sequence' => sequence}
      )
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transcriptic-0.1.2 lib/transcriptic/api/sequences.rb
transcriptic-0.1.0 lib/transcriptic/api/sequences.rb