Class: Hypertube::Sdk::RuntimeFactory

Inherits:
Internal::AbstractRuntimeFactory show all
Defined in:
lib/hypertube-ruby-sdk/sdk/runtime_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection_data) ⇒ RuntimeFactory

Returns a new instance of RuntimeFactory.



13
14
15
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 13

def initialize(connection_data)
  @connection_data = connection_data
end

Instance Method Details

#clrHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with CLR runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


20
21
22
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 20

def clr
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::CLR, @connection_data)
end

#jvmHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with JVM runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


27
28
29
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 27

def jvm
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::JVM, @connection_data)
end

#netcoreHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with .NET runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


34
35
36
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 34

def netcore
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::NETCORE, @connection_data)
end

#nodejsHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Node.js runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


55
56
57
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 55

def nodejs
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::NODEJS, @connection_data)
end

#perlHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Perl runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


41
42
43
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 41

def perl
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PERL, @connection_data)
end

#phpHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Php runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


69
70
71
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 69

def php
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PHP, @connection_data)
end

#pythonHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


62
63
64
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 62

def python
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PYTHON, @connection_data)
end

#python27Hypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python2.7 runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


76
77
78
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 76

def python27
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PYTHON27, @connection_data)
end

#rubyHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Ruby runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


48
49
50
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 48

def ruby
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::RUBY, @connection_data)
end