Class: Tiler::Query::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tiler/query/base.rb

Constant Summary collapse

SAFE_COLUMN_RE =
/\A[a-zA-Z0-9_]+\z/

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/tiler/query/base.rb', line 6

def config
  @config
end

#panelObject (readonly)

Returns the value of attribute panel.



6
7
8
# File 'lib/tiler/query/base.rb', line 6

def panel
  @panel
end

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

#callObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/tiler/query/base.rb', line 14

def call
  raise NotImplementedError
end