Class: TCellAgent::Routes::RouteEndpoint
- Inherits:
-
Object
- Object
- TCellAgent::Routes::RouteEndpoint
- Defined in:
- lib/tcell_agent/routes/table.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#database_queries_discovered ⇒ Object
Returns the value of attribute database_queries_discovered.
Instance Method Summary collapse
-
#initialize ⇒ RouteEndpoint
constructor
A new instance of RouteEndpoint.
Constructor Details
#initialize ⇒ RouteEndpoint
Returns a new instance of RouteEndpoint.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/tcell_agent/routes/table.rb', line 14 def initialize @database_queries_discovered = {} @database = Hash.new do |d_h, d_k| # Database d_h[d_k] = Hash.new do |s_h, s_k| # Schema s_h[s_k] = Hash.new do |t_h, t_k| # Table t_h[t_k] = Hash.new do |f_h, f_k| # Field f_h[f_k] = FieldEndpoint.new end end end end end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
12 13 14 |
# File 'lib/tcell_agent/routes/table.rb', line 12 def database @database end |
#database_queries_discovered ⇒ Object
Returns the value of attribute database_queries_discovered.
13 14 15 |
# File 'lib/tcell_agent/routes/table.rb', line 13 def database_queries_discovered @database_queries_discovered end |