Module: Jarvis
- Includes:
- ActiveSupport::Configurable, HTTParty
- Defined in:
- lib/jarvis.rb,
lib/jarvis/cli.rb,
lib/jarvis/server.rb,
lib/jarvis/service.rb,
lib/jarvis/version.rb,
lib/jarvis/exceptions.rb,
lib/jarvis/exceptions.rb,
lib/jarvis/interpreter.rb,
lib/jarvis/api/response.rb,
lib/jarvis/test_support/test_support.rb
Defined Under Namespace
Modules: API, TestSupport
Classes: CLI, Exception, Interpreter, Server, Service, UnfitEnvironmentException
Constant Summary
collapse
- VERSION =
"0.0.7"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.services ⇒ Object
Returns the value of attribute services.
25
26
27
|
# File 'lib/jarvis.rb', line 25
def services
@services
end
|
Class Method Details
.clear_services ⇒ Object
35
36
37
|
# File 'lib/jarvis.rb', line 35
def clear_services
@services = []
end
|
.decode_uri(str) ⇒ Object
47
48
49
|
# File 'lib/jarvis.rb', line 47
def decode_uri(str)
URI.decode(str)
end
|
.encode_uri(str) ⇒ Object
43
44
45
|
# File 'lib/jarvis.rb', line 43
def encode_uri(str)
URI.encode(str)
end
|
.get(*args, &blk) ⇒ Object
39
40
41
|
# File 'lib/jarvis.rb', line 39
def get(*args, &blk)
Jarvis::API::Response.new HTTParty.get(*args, &blk)
end
|
.register_services(*args) ⇒ Object
30
31
32
33
|
# File 'lib/jarvis.rb', line 30
def register_services(*args)
args.each { |klass| services << klass}
Jarvis::Interpreter.build_determine_service
end
|