Class: Influxdb::Api::Namespaces::Users

Inherits:
WithDatabase show all
Defined in:
lib/influxdb/api/namespaces/users.rb

Instance Attribute Summary

Attributes inherited from WithDatabase

#database_name

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from WithDatabase

#initialize

Methods inherited from Base

#all, #create, #delete, #initialize

Constructor Details

This class inherits a constructor from Influxdb::Api::Namespaces::WithDatabase

Instance Method Details

#find(name) ⇒ Object



7
8
9
# File 'lib/influxdb/api/namespaces/users.rb', line 7

def find(name)
  perform_get(resource_path(name))
end

#update(name, attributes) ⇒ Object



11
12
13
14
# File 'lib/influxdb/api/namespaces/users.rb', line 11

def update(name, attributes)
  perform_post(resource_path(name), {}, attributes)
  true
end