Class: Vayacondios::CubeClient
- Inherits:
-
Object
- Object
- Vayacondios::CubeClient
- Includes:
- Gorillib::Model
- Defined in:
- lib/vayacondios/client/cube_client.rb
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
Instance Method Details
#event(topic, document = {}) ⇒ Object
17 18 19 |
# File 'lib/vayacondios/client/cube_client.rb', line 17 def event(topic, document = {}) request(:post, File.join(uri.path, 'event'), MultiJson.dump(document)) end |
#uri ⇒ Object
10 11 12 13 14 15 |
# File 'lib/vayacondios/client/cube_client.rb', line 10 def uri return @uri if @uri uri_str = "http://#{host}:#{port}/1.0" @uri ||= URI(uri_str) end |