Class: Evalso

Inherits:
Object
  • Object
show all
Defined in:
lib/evalso.rb,
lib/evalso/version.rb,
lib/evalso/language.rb,
lib/evalso/languages.rb

Overview

Current API docs: eval.so/api/1

Defined Under Namespace

Modules: Languages Classes: HTTPError, Language, Request, Response

Constant Summary collapse

API_VERSION =
1
DEFAULT_URI =
"http://eval.so/api/"
VERSION =
"0.0.12"

Class Method Summary collapse

Class Method Details

.base_uri(uri = nil) ⇒ Object



18
19
20
21
22
# File 'lib/evalso.rb', line 18

def self.base_uri(uri = nil)
  return @@base_uri unless uri

  @@base_uri = uri
end

.languagesObject



30
31
32
# File 'lib/evalso.rb', line 30

def self.languages
  Evalso::Languages.languages
end

.run(hash) ⇒ Object



26
27
28
# File 'lib/evalso.rb', line 26

def self.run(hash)
  Request.new(hash).response
end