Class: Rafflesia::SimulationGromacsInputResolution
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsInputResolution
- 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
-
#candidates ⇒ Object
Returns the value of attribute candidates.
-
#input ⇒ Object
Returns the value of attribute input.
-
#match_type ⇒ Object
Returns the value of attribute match_type.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsInputResolution
constructor
A new instance of SimulationGromacsInputResolution.
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
#candidates ⇒ Object
Returns the value of attribute candidates.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 15 def candidates @candidates end |
#input ⇒ Object
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_type ⇒ Object
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 |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_resolution.rb', line 15 def status @status end |