Module: Cobinhood::Client::REST::SystemAPI

Included in:
Cobinhood::Client::REST
Defined in:
lib/cobinhood/client/rest/system_api.rb

Instance Method Summary collapse

Instance Method Details

#infoObject



13
14
15
# File 'lib/cobinhood/client/rest/system_api.rb', line 13

def info
  request :system, :get, :info
end

#localtimeObject



9
10
11
# File 'lib/cobinhood/client/rest/system_api.rb', line 9

def localtime
  Time.at time["result"]["time"] / 1000.0
end

#timeObject



5
6
7
# File 'lib/cobinhood/client/rest/system_api.rb', line 5

def time
  request :system, :get, :time
end