Class: Influxdb::Api::Namespaces::WithDatabase

Inherits:
Base
  • Object
show all
Defined in:
lib/influxdb/api/namespaces/with_database.rb

Direct Known Subclasses

ContinuousQueries, Series, ShardSpaces, Users

Instance Attribute Summary collapse

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#all, #create, #delete

Constructor Details

#initialize(client, database_name) ⇒ WithDatabase

Returns a new instance of WithDatabase.



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

def initialize(client, database_name)
  @client = client
  @database_name = database_name
end

Instance Attribute Details

#database_nameObject (readonly)

Returns the value of attribute database_name.



5
6
7
# File 'lib/influxdb/api/namespaces/with_database.rb', line 5

def database_name
  @database_name
end