Sha256: 2ccfd48fdc00c1cb278a567a6d9510ef2ad31c513a7391f08dd0da17bb6fcd29
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 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 'base_action' module GoodData module LCM2 class PrintTypes < BaseAction DESCRIPTION = 'Print Information About Defined Types' PARAMS = { } class << self def call(params) # Check if all required parameters were passed BaseAction.check_params(PARAMS, params) results = [] GoodData::LCM2::Dsl::Dsl::TYPES.each_pair do |k, v| vals = [] v.each_pair do |_name, val| vals << val[:type] end required = [] v.each_pair do |_name, val| required << val[:opts][:required] end defaults = [] v.each_pair do |_name, val| defaults << val[:opts][:default] end results << { class: k.short_name, param: v.keys.join("\n"), type: vals.join("\n"), required: required.join("\n"), default: defaults.join("\n") } end # Return results results end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.51 | lib/gooddata/lcm/actions/print_types.rb |
gooddata-0.6.50 | lib/gooddata/lcm/actions/print_types.rb |