Class: NodeDirection

Inherits:
Object
  • Object
show all
Defined in:
lib/runtime.rb,
lib/generators/scala_server_generator.rb,
lib/generators/unity_client_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(local, remote) ⇒ NodeDirection

Returns a new instance of NodeDirection.



341
342
343
344
# File 'lib/runtime.rb', line 341

def initialize local, remote
  @local = local
  @remote = remote
end

Instance Attribute Details

#in_directionObject

Returns the value of attribute in_direction.



339
340
341
# File 'lib/runtime.rb', line 339

def in_direction
  @in_direction
end

#localObject

Returns the value of attribute local.



339
340
341
# File 'lib/runtime.rb', line 339

def local
  @local
end

#out_directionObject

Returns the value of attribute out_direction.



339
340
341
# File 'lib/runtime.rb', line 339

def out_direction
  @out_direction
end

#remoteObject

Returns the value of attribute remote.



339
340
341
# File 'lib/runtime.rb', line 339

def remote
  @remote
end

Instance Method Details

#connection_nameObject



115
116
117
# File 'lib/generators/scala_server_generator.rb', line 115

def connection_name
  "#{@remote.name}ConnectionBase"
end

#connector_nameObject



166
167
168
# File 'lib/generators/unity_client_generator.rb', line 166

def connector_name
  "#{@remote.name}Connector"
end

#handler_nameObject



170
171
172
# File 'lib/generators/unity_client_generator.rb', line 170

def handler_name
  "I#{@remote.name}Handler"
end

#service_nameObject



111
112
113
# File 'lib/generators/scala_server_generator.rb', line 111

def service_name
  "#{@remote.name}Service"
end