class GoodData::Bricks::Brick

Brick base class

Public Instance Methods

call(params = {}) click to toggle source

Bricks implementation which can be 'called'

# File lib/gooddata/bricks/brick.rb, line 31
def call(params = {})
  @params = params
  ''
end
log(message) click to toggle source
# File lib/gooddata/bricks/brick.rb, line 15
def log(message)
  logger = @params[:gdc_logger]
  logger.info(message) unless logger.nil?
end
name() click to toggle source

Name of the brick

# File lib/gooddata/bricks/brick.rb, line 21
def name
  self.class
end
version() click to toggle source

Version of brick, this should be implemented in subclasses

# File lib/gooddata/bricks/brick.rb, line 26
def version
  raise NotImplementedError, 'Method version should be reimplemented'
end