Sha256: 3cd44e83e57a70746ac597f9a9c045ffa220e1cd9deac2dc42f85966529d8fff
Contents?: true
Size: 1.22 KB
Versions: 21
Compression:
Stored size: 1.22 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) 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
21 entries across 21 versions & 1 rubygems