lib/gooddata/bricks/brick.rb in gooddata-0.6.49 vs lib/gooddata/bricks/brick.rb in gooddata-0.6.50
- old
+ new
@@ -1,15 +1,14 @@
# encoding: UTF-8
#
-# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
+# 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 'base_downloader'
require_relative 'utils'
-
require_relative 'middleware/middleware'
+require_relative 'pipeline'
module GoodData
module Bricks
# Brick base class
class Brick
@@ -23,10 +22,10 @@
self.class
end
# Version of brick, this should be implemented in subclasses
def version
- fail NotImplementedError, 'Method version should be reimplemented'
+ raise NotImplementedError, 'Method version should be reimplemented'
end
# Bricks implementation which can be 'called'
def call(params = {})
@params = params