Class: GoodData::Bricks::Brick
- Inherits:
-
Object
- Object
- GoodData::Bricks::Brick
- Defined in:
- lib/gooddata/bricks/brick.rb
Overview
Brick base class
Instance Method Summary collapse
-
#call(params = {}) ⇒ Object
Bricks implementation which can be ‘called’.
- #log(message) ⇒ Object
-
#name ⇒ Object
Name of the brick.
-
#version ⇒ Object
Version of brick, this should be implemented in subclasses.
Instance Method Details
#call(params = {}) ⇒ Object
Bricks implementation which can be ‘called’
31 32 33 34 |
# File 'lib/gooddata/bricks/brick.rb', line 31 def call(params = {}) @params = params '' end |
#log(message) ⇒ Object
15 16 17 18 |
# File 'lib/gooddata/bricks/brick.rb', line 15 def log() logger = @params[:gdc_logger] logger.info() unless logger.nil? end |
#name ⇒ Object
Name of the brick
21 22 23 |
# File 'lib/gooddata/bricks/brick.rb', line 21 def name self.class end |
#version ⇒ Object
Version of brick, this should be implemented in subclasses
26 27 28 |
# File 'lib/gooddata/bricks/brick.rb', line 26 def version raise NotImplementedError, 'Method version should be reimplemented' end |