Class: Rafflesia::SimulationBackendEvidence

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

Instance Method Summary collapse

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

#backendObject

Returns the value of attribute backend.



17
18
19
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17

def backend
  @backend
end

#errorObject

Returns the value of attribute error.



17
18
19
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17

def error
  @error
end

#executableObject

Returns the value of attribute executable.



17
18
19
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17

def executable
  @executable
end

#is_availableObject

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_backendObject

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

#versionObject

Returns the value of attribute version.



17
18
19
# File 'lib/rafflesia/simulations/simulation_backend_evidence.rb', line 17

def version
  @version
end