Method: GoodData::LCM2::Dsl::TypeDsl#param
- Defined in:
- lib/gooddata/lcm/dsl/type_dsl.rb
#param(name, type, opts = {}) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gooddata/lcm/dsl/type_dsl.rb', line 39 def param(name, type, opts = {}) @param.name = name @param.type = type @param.opts = opts @params[name] = { name: @param.name, type: @param.type, opts: @param.opts, description: @param.description, category: @param.type.class.const_get(:CATEGORY) } # Create new instance of param new_param end |