Sha256: fa632b804e71bfa3045861965f1d15858f1e3869d6a5a0fc57a488cb96ea6372

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

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 '../dsl/dsl'
require_relative '../helpers/helpers'
require_relative '../types/types'

module GoodData
  module LCM2
    class BaseAction
      class << self
        include Dsl::Dsl

        def check_params(specification, params)
          Helpers.check_params(specification, params)
        end

        # This method is used to enable the possibility to read keys of params object
        # which are not specified in the specification constant
        # typically in case when method access params dynamically based on user input
        def without_check(specification, params)
          params.clear_filters # disables params validation
          result = yield
          params.setup_filters(specification) # enables params validation
          result
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gooddata-1.3.0-java lib/gooddata/lcm/actions/base_action.rb
gooddata-1.3.0 lib/gooddata/lcm/actions/base_action.rb
gooddata-1.2.1-java lib/gooddata/lcm/actions/base_action.rb
gooddata-1.2.1 lib/gooddata/lcm/actions/base_action.rb
gooddata-1.2.0-java lib/gooddata/lcm/actions/base_action.rb
gooddata-1.2.0 lib/gooddata/lcm/actions/base_action.rb
gooddata-1.1.0-java lib/gooddata/lcm/actions/base_action.rb
gooddata-1.1.0 lib/gooddata/lcm/actions/base_action.rb