Class: Rafflesia::SimulationRuntimeGromacsProbe

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_runtime_gromacs_probe.rb

Constant Summary collapse

HASH_ATTRS =
{
  error: :error,
  executable: :executable,
  is_available: :is_available,
  resolved_from: :resolved_from,
  supported_subcommands: :supported_subcommands,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationRuntimeGromacsProbe

Returns a new instance of SimulationRuntimeGromacsProbe.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/simulations/simulation_runtime_gromacs_probe.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @error = hash[:error]
  @executable = hash[:executable]
  @is_available = hash[:is_available]
  @resolved_from = hash[:resolved_from]
  @supported_subcommands = (hash[:supported_subcommands] || [])
  @version = hash[:version]
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



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

def error
  @error
end

#executableObject

Returns the value of attribute executable.



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

def executable
  @executable
end

#is_availableObject

Returns the value of attribute is_available.



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

def is_available
  @is_available
end

#resolved_fromObject

Returns the value of attribute resolved_from.



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

def resolved_from
  @resolved_from
end

#supported_subcommandsObject

Returns the value of attribute supported_subcommands.



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

def supported_subcommands
  @supported_subcommands
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end