Class: Simrpc::Schema::MethodDef
- Inherits:
-
Object
- Object
- Simrpc::Schema::MethodDef
- 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
-
#handler ⇒ Object
should be a callable entity that takes the specified parameters, and returns the specified return values.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameters ⇒ Object
both are arrays of DataFieldDef.
-
#return_values ⇒ Object
both are arrays of DataFieldDef.
Instance Method Summary collapse
-
#initialize ⇒ MethodDef
constructor
A new instance of MethodDef.
Constructor Details
#initialize ⇒ MethodDef
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
#handler ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
303 304 305 |
# File 'lib/simrpc/schema.rb', line 303 def name @name end |
#parameters ⇒ Object
both are arrays of DataFieldDef
306 307 308 |
# File 'lib/simrpc/schema.rb', line 306 def parameters @parameters end |
#return_values ⇒ Object
both are arrays of DataFieldDef
306 307 308 |
# File 'lib/simrpc/schema.rb', line 306 def return_values @return_values end |