Class: Holoserve::Connector::Bucket
- Inherits:
-
Object
- Object
- Holoserve::Connector::Bucket
- Defined in:
- lib/holoserve/connector/bucket.rb
Instance Method Summary collapse
- #clear! ⇒ Object
-
#initialize(client) ⇒ Bucket
constructor
A new instance of Bucket.
- #requests ⇒ Object
Constructor Details
#initialize(client) ⇒ Bucket
Returns a new instance of Bucket.
5 6 7 |
# File 'lib/holoserve/connector/bucket.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#clear! ⇒ Object
13 14 15 |
# File 'lib/holoserve/connector/bucket.rb', line 13 def clear! Transport::JSON.request :delete, "#{@client.url}/bucket" end |
#requests ⇒ Object
9 10 11 |
# File 'lib/holoserve/connector/bucket.rb', line 9 def requests Transport::JSON.request :get, "#{@client.url}/bucket" end |