Class: Rafflesia::SimulationRuntimeBackendCapability
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationRuntimeBackendCapability
- Defined in:
- lib/rafflesia/simulations/simulation_runtime_backend_capability.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, error: :error, executable: :executable, is_available: :is_available, supported_formats: :supported_formats, supported_measurements: :supported_measurements, version: :version }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#error ⇒ Object
Returns the value of attribute error.
-
#executable ⇒ Object
Returns the value of attribute executable.
-
#is_available ⇒ Object
Returns the value of attribute is_available.
-
#supported_formats ⇒ Object
Returns the value of attribute supported_formats.
-
#supported_measurements ⇒ Object
Returns the value of attribute supported_measurements.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationRuntimeBackendCapability
constructor
A new instance of SimulationRuntimeBackendCapability.
Constructor Details
#initialize(json) ⇒ SimulationRuntimeBackendCapability
Returns a new instance of SimulationRuntimeBackendCapability.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @error = hash[:error] @executable = hash[:executable] @is_available = hash[:is_available] @supported_formats = (hash[:supported_formats] || []) @supported_measurements = (hash[:supported_measurements] || []) @version = hash[:version] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def backend @backend end |
#error ⇒ Object
Returns the value of attribute error.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def error @error end |
#executable ⇒ Object
Returns the value of attribute executable.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def executable @executable end |
#is_available ⇒ Object
Returns the value of attribute is_available.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def is_available @is_available end |
#supported_formats ⇒ Object
Returns the value of attribute supported_formats.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def supported_formats @supported_formats end |
#supported_measurements ⇒ Object
Returns the value of attribute supported_measurements.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def supported_measurements @supported_measurements end |
#version ⇒ Object
Returns the value of attribute version.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18 def version @version end |