Class: InfluxdbSetup::LoadQueries::Query
- Inherits:
-
Object
- Object
- InfluxdbSetup::LoadQueries::Query
- Defined in:
- lib/influxdb_setup/load_queries.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#raw_name ⇒ Object
readonly
Returns the value of attribute raw_name.
Instance Method Summary collapse
-
#initialize(raw_name, query) ⇒ Query
constructor
A new instance of Query.
- #name ⇒ Object
Constructor Details
#initialize(raw_name, query) ⇒ Query
Returns a new instance of Query.
6 7 8 9 |
# File 'lib/influxdb_setup/load_queries.rb', line 6 def initialize(raw_name, query) @raw_name = raw_name @query = query end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
4 5 6 |
# File 'lib/influxdb_setup/load_queries.rb', line 4 def query @query end |
#raw_name ⇒ Object (readonly)
Returns the value of attribute raw_name.
4 5 6 |
# File 'lib/influxdb_setup/load_queries.rb', line 4 def raw_name @raw_name end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/influxdb_setup/load_queries.rb', line 11 def name "influxdb_setup_#{raw_name}" end |