Class: GoodData::Bricks::Brick
Overview
Brick base class
Direct Known Subclasses
HelloWorldBrick, HelpBrick, ProvisioningBrick, ReleaseBrick, RolloutBrick, UserFiltersBrick, UsersBrick
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'
29 30 31 32 |
# File 'lib/gooddata/bricks/brick.rb', line 29 def call(params = {}) @params = params '' end |
#log(message) ⇒ Object
13 14 15 16 |
# File 'lib/gooddata/bricks/brick.rb', line 13 def log() logger = @params[:gdc_logger] logger.info() unless logger.nil? end |
#name ⇒ Object
Name of the brick
19 20 21 |
# File 'lib/gooddata/bricks/brick.rb', line 19 def name self.class end |
#version ⇒ Object
Version of brick, this should be implemented in subclasses
24 25 26 |
# File 'lib/gooddata/bricks/brick.rb', line 24 def version raise NotImplementedError, 'Method version should be reimplemented' end |