Sha256: 923e46afdb9ddf52250ce89f649cd70a5c9789807ccc5463194dee2aa39efeda

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

class HelloWorldFunction < Shatter::Service::Function
  define_param :name, nullable: false, type: 'string'
  define_param :number, nullable: false, type: 'integer'

  def invoke
    params.to_h => name:, uuid:
    { result: "Hello #{name}", error: nil, uuid: }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shatter-rb-0.1.1 templates/hello_world_function.rb.erb
shatter-rb-0.1.0 templates/hello_world_function.rb.erb