Class: GoodData::LCM2::HelloWorld
- Inherits:
-
BaseAction
- Object
- BaseAction
- GoodData::LCM2::HelloWorld
- Defined in:
- lib/gooddata/lcm/actions/hello_world.rb
Constant Summary collapse
- DESCRIPTION =
'Print Hello World Message'
- PARAMS =
define_params(self) do description 'Message to be printed' param :message, instance_of(Type::StringType), required: false description 'Number of Iterations' param :iterations, instance_of(Type::IntegerType), required: false, default: 1 end
Constants included from Dsl::Dsl
Dsl::Dsl::DEFAULT_OPTS, Dsl::Dsl::TYPES
Class Method Summary collapse
Methods inherited from BaseAction
Methods included from Dsl::Dsl
#define_params, #define_type, #process
Class Method Details
.call(params) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/gooddata/lcm/actions/hello_world.rb', line 27 def call(params) say(params.) msg = { message: params. } results = [msg] # Return results results end |