Class: Holoserve::Connector::Bucket

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

Instance Method Summary collapse

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

#requestsObject



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

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