Class: Rafflesia::SimulationGromacsInputResolution

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

Constant Summary collapse

HASH_ATTRS =
{
  candidates: :candidates,
  input: :input,
  match_type: :match_type,
  status: :status
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsInputResolution

Returns a new instance of SimulationGromacsInputResolution.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidates = (hash[:candidates] || []).map { |item| item ? Rafflesia::SimulationGromacsInventoryEntry.new(item) : nil }
  @input = hash[:input] ? Rafflesia::SimulationGromacsFileRef.new(hash[:input]) : nil
  @match_type = hash[:match_type]
  @status = hash[:status]
end

Instance Attribute Details

#candidatesObject

Returns the value of attribute candidates.



15
16
17
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 15

def candidates
  @candidates
end

#inputObject

Returns the value of attribute input.



15
16
17
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 15

def input
  @input
end

#match_typeObject

Returns the value of attribute match_type.



15
16
17
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 15

def match_type
  @match_type
end

#statusObject

Returns the value of attribute status.



15
16
17
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 15

def status
  @status
end