Module: Algorithmia

Defined in:
lib/algorithmia.rb,
lib/algorithmia/client.rb,
lib/algorithmia/errors.rb,
lib/algorithmia/version.rb,
lib/algorithmia/response.rb,
lib/algorithmia/algorithm.rb,
lib/algorithmia/data_file.rb,
lib/algorithmia/requester.rb,
lib/algorithmia/data_object.rb,
lib/algorithmia/data_directory.rb,
lib/algorithmia/unauthenticated_client.rb

Defined Under Namespace

Modules: Errors Classes: Algorithm, Client, DataDirectory, DataFile, DataObject, Requester, Response, UnauthenticatedClient

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.algo(endpoint) ⇒ Object


15
16
17
# File 'lib/algorithmia.rb', line 15

def algo(endpoint)
  Algorithmia::UnauthenticatedClient.new.algo(endpoint)
end

.client(api_key = nil, base_url = nil) ⇒ Object


27
28
29
# File 'lib/algorithmia.rb', line 27

def client(api_key=nil, base_url=nil)
  Algorithmia::Client.new(api_key, base_url)
end

.dir(data_uri) ⇒ Object


23
24
25
# File 'lib/algorithmia.rb', line 23

def dir(data_uri)
  Algorithmia::UnauthenticatedClient.new.dir(data_uri)
end

.file(data_uri) ⇒ Object


19
20
21
# File 'lib/algorithmia.rb', line 19

def file(data_uri)
  Algorithmia::UnauthenticatedClient.new.file(data_uri)
end