Sha256: 618ee085b8ce1f0c708c2408e5f89519376076ff888ad267d9b16959af4d870a

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

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 example_app/app/functions/hello_world_function.rb
shatter-rb-0.1.0 example_app/app/functions/hello_world_function.rb