Module: Vayacondios::Client::HttpAdmin

Includes:
Connection
Included in:
HttpClient
Defined in:
lib/vayacondios/client/http_methods.rb

Instance Method Summary collapse

Methods included from Connection

base_uri, #configure_connection, factory, #http_connection, #organization, #url

Instance Method Details

#clear_events(topic, query = {}) ⇒ Object

Delete all events by topic and query



79
80
81
82
83
# File 'lib/vayacondios/client/http_methods.rb', line 79

def clear_events(topic, query = {})
  http_connection.delete url('events', topic) do |req|
    req.body = query
  end
end

#unset(topic, id = nil) ⇒ Object

Delete one stash



67
68
69
# File 'lib/vayacondios/client/http_methods.rb', line 67

def unset(topic, id = nil)
  http_connection.delete url('stash', topic, id)
end

#unset_many(query = {}) ⇒ Object

Delete stashes by search



72
73
74
75
76
# File 'lib/vayacondios/client/http_methods.rb', line 72

def unset_many(query = {})
  http_connection.delete url('stashes') do |req|
    req.body = query
  end
end