Class: Rafflesia::SimulationRuntimeBackendCapability

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#backendObject

Returns the value of attribute backend.



18
19
20
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18

def backend
  @backend
end

#errorObject

Returns the value of attribute error.



18
19
20
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18

def error
  @error
end

#executableObject

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_availableObject

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_formatsObject

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_measurementsObject

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

#versionObject

Returns the value of attribute version.



18
19
20
# File 'lib/rafflesia/simulations/simulation_runtime_backend_capability.rb', line 18

def version
  @version
end