Class: Holoserve::Connector::History

Inherits:
Object
  • Object
show all
Defined in:
lib/holoserve/connector/history.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ History

Returns a new instance of History.



5
6
7
# File 'lib/holoserve/connector/history.rb', line 5

def initialize(client)
  @client = client
end

Instance Method Details

#clear!Object



9
10
11
# File 'lib/holoserve/connector/history.rb', line 9

def clear!
  Transport::JSON.request :delete, "#{@client.url}/history"
end

#entriesObject



13
14
15
# File 'lib/holoserve/connector/history.rb', line 13

def entries
  Transport::JSON.request :get, "#{@client.url}/history"
end