Class: Influxdb::Api::Database
- Inherits:
-
Object
- Object
- Influxdb::Api::Database
- Defined in:
- lib/influxdb/api/database.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #continuous_queries ⇒ Object
-
#initialize(client, name) ⇒ Database
constructor
A new instance of Database.
- #series ⇒ Object
- #shard_spaces ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(client, name) ⇒ Database
Returns a new instance of Database.
6 7 8 9 |
# File 'lib/influxdb/api/database.rb', line 6 def initialize(client, name) @client = client @name = name end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/influxdb/api/database.rb', line 4 def client @client end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/influxdb/api/database.rb', line 4 def name @name end |
Instance Method Details
#continuous_queries ⇒ Object
19 20 21 |
# File 'lib/influxdb/api/database.rb', line 19 def continuous_queries @continuous_queries ||= Namespaces::ContinuousQueries.new(client, name) end |
#series ⇒ Object
11 12 13 |
# File 'lib/influxdb/api/database.rb', line 11 def series @series ||= Namespaces::Series.new(client, name) end |
#shard_spaces ⇒ Object
23 24 25 |
# File 'lib/influxdb/api/database.rb', line 23 def shard_spaces @shard_spaces ||= Namespaces::ShardSpaces.new(client, name) end |
#users ⇒ Object
15 16 17 |
# File 'lib/influxdb/api/database.rb', line 15 def users @users ||= Namespaces::Users.new(client, name) end |