Class: Tiler::Query::Base
- Inherits:
-
Object
- Object
- Tiler::Query::Base
- Defined in:
- lib/tiler/query/base.rb
Direct Known Subclasses
Widgets::BarChartQuery, Widgets::CommentsQuery, Widgets::LineChartQuery, Widgets::ListQuery, Widgets::MeterQuery, Widgets::MetricQuery, Widgets::NumberWithDeltaQuery, Widgets::PieChartQuery, Widgets::StatusGridQuery, Widgets::TableQuery
Constant Summary collapse
- SAFE_COLUMN_RE =
/\A[a-zA-Z0-9_]+\z/
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#panel ⇒ Object
readonly
Returns the value of attribute panel.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(panel, config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(panel, config) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/tiler/query/base.rb', line 8 def initialize(panel, config) @panel = panel @config = config || {} @source = panel.data_source end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/tiler/query/base.rb', line 6 def config @config end |
#panel ⇒ Object (readonly)
Returns the value of attribute panel.
6 7 8 |
# File 'lib/tiler/query/base.rb', line 6 def panel @panel end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/tiler/query/base.rb', line 6 def source @source end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/tiler/query/base.rb', line 14 def call raise NotImplementedError end |