Class: Logman::QueryBuilder
- Inherits:
-
Object
- Object
- Logman::QueryBuilder
- Defined in:
- lib/console/lib/query_builder.rb
Instance Attribute Summary collapse
-
#con ⇒ Object
Returns the value of attribute con.
Instance Method Summary collapse
- #execute(param) ⇒ Object
-
#initialize(con) ⇒ QueryBuilder
constructor
A new instance of QueryBuilder.
Constructor Details
#initialize(con) ⇒ QueryBuilder
Returns a new instance of QueryBuilder.
9 10 11 |
# File 'lib/console/lib/query_builder.rb', line 9 def initialize(con) @con = con end |
Instance Attribute Details
#con ⇒ Object
Returns the value of attribute con.
7 8 9 |
# File 'lib/console/lib/query_builder.rb', line 7 def con @con end |
Instance Method Details
#execute(param) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/console/lib/query_builder.rb', line 14 def execute(param) str = URI.decode(param) obj = JSON.parse(str) obj.each do |q| build_concern(q) end @con end |