Class: Hypertube::Sdk::RuntimeFactory
- Inherits:
-
Internal::AbstractRuntimeFactory
- Object
- Internal::AbstractRuntimeFactory
- Hypertube::Sdk::RuntimeFactory
- Defined in:
- lib/hypertube-ruby-sdk/sdk/runtime_factory.rb
Instance Method Summary collapse
-
#clr ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with CLR runtime.
-
#initialize(connection_type, connection_data) ⇒ RuntimeFactory
constructor
A new instance of RuntimeFactory.
-
#jvm ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with JVM runtime.
-
#netcore ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with .NET runtime.
-
#nodejs ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Node.js runtime.
-
#perl ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Perl runtime.
-
#php ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Php runtime.
-
#python ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python runtime.
-
#python27 ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python2.7 runtime.
-
#ruby ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Ruby runtime.
Constructor Details
#initialize(connection_type, connection_data) ⇒ RuntimeFactory
Returns a new instance of RuntimeFactory.
13 14 15 16 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 13 def initialize(connection_type, connection_data) @connection_type = connection_type @connection_data = connection_data end |
Instance Method Details
#clr ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with CLR runtime.
21 22 23 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 21 def clr Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::CLR, @connection_type, @connection_data) end |
#jvm ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with JVM runtime.
28 29 30 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 28 def jvm Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::JVM, @connection_type, @connection_data) end |
#netcore ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with .NET runtime.
35 36 37 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 35 def netcore Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::NETCORE, @connection_type, @connection_data) end |
#nodejs ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Node.js runtime.
56 57 58 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 56 def nodejs Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::NODEJS, @connection_type, @connection_data) end |
#perl ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Perl runtime.
42 43 44 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 42 def perl Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PERL, @connection_type, @connection_data) end |
#php ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Php runtime.
70 71 72 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 70 def php Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PHP, @connection_type, @connection_data) end |
#python ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python runtime.
63 64 65 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 63 def python Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PYTHON, @connection_type, @connection_data) end |
#python27 ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python2.7 runtime.
77 78 79 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 77 def python27 Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PYTHON27, @connection_type, @connection_data) end |
#ruby ⇒ Hypertube::Sdk::RuntimeContext
Creates a Hypertube::Sdk::RuntimeContext instance to interact with Ruby runtime.
49 50 51 |
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 49 def ruby Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::RUBY, @connection_type, @connection_data) end |