Sha256: 197d271c14f5f6700674a593ebe931a3bb03a6f4f55949cd893efaabedc50932
Contents?: true
Size: 824 Bytes
Versions: 4
Compression:
Stored size: 824 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. require_relative 'utils' module GoodData module Bricks # Brick base class class Brick def log(message) logger = @params[:gdc_logger] logger.info(message) unless logger.nil? end # Name of the brick def name self.class end # Version of brick, this should be implemented in subclasses def version raise NotImplementedError, 'Method version should be reimplemented' end # Bricks implementation which can be 'called' def call(params = {}) @params = params '' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gooddata-2.3.1-java | lib/gooddata/bricks/brick.rb |
gooddata-2.3.1 | lib/gooddata/bricks/brick.rb |
gooddata-2.3.0-java | lib/gooddata/bricks/brick.rb |
gooddata-2.3.0 | lib/gooddata/bricks/brick.rb |