Class: MrMurano::Timeseries

Inherits:
ServiceConfig show all
Defined in:
lib/MrMurano/commands/timeseries.rb

Instance Method Summary collapse

Methods inherited from ServiceConfig

#fetch, #list, #scid, #scid_for_name

Methods inherited from SolutionBase

#docmp, #dodiff, #download, #endPoint, #localitems, #locallist, #removelocal, #status, #syncdown, #synckey, #syncup, #toRemoteItem, #tolocalname, #tolocalpath

Methods included from Verbose

#debug, #verbose

Methods included from Http

#curldebug, #delete, #get, #http, #http_reset, #json_opts, #post, #postf, #put, #set_def_headers, #showHttpError, #token, #tryToPrettyJSON, #workit

Constructor Details

#initializeTimeseries

Returns a new instance of Timeseries.



5
6
7
8
# File 'lib/MrMurano/commands/timeseries.rb', line 5

def initialize
  super
  @serviceName = 'timeseries'
end

Instance Method Details

#command(cmd) ⇒ Object



18
19
20
# File 'lib/MrMurano/commands/timeseries.rb', line 18

def command(cmd)
  post("/#{scid}/call/command", { :q=>cmd})
end

#query(query) ⇒ Object



10
11
12
# File 'lib/MrMurano/commands/timeseries.rb', line 10

def query(query)
  post("/#{scid}/call/query", {:q=>query})
end

#write(writestr) ⇒ Object



14
15
16
# File 'lib/MrMurano/commands/timeseries.rb', line 14

def write(writestr)
  post("/#{scid}/call/write", { :query=>writestr })
end