class Algorithmia::Client

Attributes

api_address[R]
api_key[R]

Public Class Methods

new(api_key, api_address=nil) click to toggle source
# File lib/algorithmia/client.rb, line 6
def initialize(api_key, api_address=nil)
  @api_key = api_key
  @api_address = api_address || ENV['ALGORITHMIA_API'] || "https://api.algorithmia.com"
end

Public Instance Methods

algo(endpoint) click to toggle source
# File lib/algorithmia/client.rb, line 11
def algo(endpoint)
  Algorithmia::Algorithm.new(self, endpoint)
end
dir(endpoint) click to toggle source
# File lib/algorithmia/client.rb, line 19
def dir(endpoint)
  Algorithmia::DataDirectory.new(self, endpoint)
end
file(endpoint) click to toggle source
# File lib/algorithmia/client.rb, line 15
def file(endpoint)
  Algorithmia::DataFile.new(self, endpoint)
end