Class: Rafflesia::SimulationBackendEvidence
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationBackendEvidence
- Defined in:
- lib/rafflesia/simulations/simulation_backend_evidence.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, error: :error, executable: :executable, is_available: :is_available, requested_backend: :requested_backend, 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.
-
#requested_backend ⇒ Object
Returns the value of attribute requested_backend.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationBackendEvidence
constructor
A new instance of SimulationBackendEvidence.
Constructor Details
#initialize(json) ⇒ SimulationBackendEvidence
Returns a new instance of SimulationBackendEvidence.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @error = hash[:error] @executable = hash[:executable] @is_available = hash[:is_available] @requested_backend = hash[:requested_backend] @version = hash[:version] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17 def backend @backend end |
#error ⇒ Object
Returns the value of attribute error.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17 def error @error end |
#executable ⇒ Object
Returns the value of attribute executable.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17 def executable @executable end |
#is_available ⇒ Object
Returns the value of attribute is_available.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17 def is_available @is_available end |
#requested_backend ⇒ Object
Returns the value of attribute requested_backend.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17 def requested_backend @requested_backend end |
#version ⇒ Object
Returns the value of attribute version.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17 def version @version end |