Class: Simrpc::Schema::MethodDef

Inherits:
Object
  • Object
show all
Defined in:
lib/simrpc/schema.rb

Overview

method definition, containing parameters and return values. May optionally have a handler to be invoked when a remote entity invokes this method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMethodDef

Returns a new instance of MethodDef.



313
314
315
316
# File 'lib/simrpc/schema.rb', line 313

def initialize
  @parameters    = []
  @return_values = []
end

Instance Attribute Details

#handlerObject

should be a callable entity that takes the specified parameters, and returns the specified return values



311
312
313
# File 'lib/simrpc/schema.rb', line 311

def handler
  @handler
end

#nameObject

Returns the value of attribute name.



303
304
305
# File 'lib/simrpc/schema.rb', line 303

def name
  @name
end

#parametersObject

both are arrays of DataFieldDef



306
307
308
# File 'lib/simrpc/schema.rb', line 306

def parameters
  @parameters
end

#return_valuesObject

both are arrays of DataFieldDef



306
307
308
# File 'lib/simrpc/schema.rb', line 306

def return_values
  @return_values
end