Class: InfluxdbSetup::LoadQueries::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb_setup/load_queries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#queryObject (readonly)

Returns the value of attribute query.



4
5
6
# File 'lib/influxdb_setup/load_queries.rb', line 4

def query
  @query
end

#raw_nameObject (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

#nameObject



11
12
13
# File 'lib/influxdb_setup/load_queries.rb', line 11

def name
  "influxdb_setup_#{raw_name}"
end