Class: Holoserve::Connector::History
- Inherits:
-
Object
- Object
- Holoserve::Connector::History
- Defined in:
- lib/holoserve/connector/history.rb
Instance Method Summary collapse
- #clear! ⇒ Object
- #entries ⇒ Object
-
#initialize(client) ⇒ History
constructor
A new instance of History.
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 |
#entries ⇒ Object
13 14 15 |
# File 'lib/holoserve/connector/history.rb', line 13 def entries Transport::JSON.request :get, "#{@client.url}/history" end |