Class: Rafflesia::SimulationTrajectoryCompatibility
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationTrajectoryCompatibility
- Defined in:
- lib/rafflesia/simulations/simulation_trajectory_compatibility.rb
Constant Summary collapse
- HASH_ATTRS =
{ is_checked: :is_checked, is_compatible: :is_compatible, topology_atom_count: :topology_atom_count, topology_residue_count: :topology_residue_count, trajectory_atom_count: :trajectory_atom_count, trajectory_residue_count: :trajectory_residue_count, warnings: :warnings }.freeze
Instance Attribute Summary collapse
-
#is_checked ⇒ Object
Returns the value of attribute is_checked.
-
#is_compatible ⇒ Object
Returns the value of attribute is_compatible.
-
#topology_atom_count ⇒ Object
Returns the value of attribute topology_atom_count.
-
#topology_residue_count ⇒ Object
Returns the value of attribute topology_residue_count.
-
#trajectory_atom_count ⇒ Object
Returns the value of attribute trajectory_atom_count.
-
#trajectory_residue_count ⇒ Object
Returns the value of attribute trajectory_residue_count.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationTrajectoryCompatibility
constructor
A new instance of SimulationTrajectoryCompatibility.
Constructor Details
#initialize(json) ⇒ SimulationTrajectoryCompatibility
Returns a new instance of SimulationTrajectoryCompatibility.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @is_checked = hash[:is_checked] @is_compatible = hash[:is_compatible] @topology_atom_count = hash[:topology_atom_count] @topology_residue_count = hash[:topology_residue_count] @trajectory_atom_count = hash[:trajectory_atom_count] @trajectory_residue_count = hash[:trajectory_residue_count] @warnings = (hash[:warnings] || []) end |
Instance Attribute Details
#is_checked ⇒ Object
Returns the value of attribute is_checked.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def is_checked @is_checked end |
#is_compatible ⇒ Object
Returns the value of attribute is_compatible.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def is_compatible @is_compatible end |
#topology_atom_count ⇒ Object
Returns the value of attribute topology_atom_count.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def topology_atom_count @topology_atom_count end |
#topology_residue_count ⇒ Object
Returns the value of attribute topology_residue_count.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def topology_residue_count @topology_residue_count end |
#trajectory_atom_count ⇒ Object
Returns the value of attribute trajectory_atom_count.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def trajectory_atom_count @trajectory_atom_count end |
#trajectory_residue_count ⇒ Object
Returns the value of attribute trajectory_residue_count.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def trajectory_residue_count @trajectory_residue_count end |
#warnings ⇒ Object
Returns the value of attribute warnings.
18 19 20 |
# File 'lib/rafflesia/simulations/simulation_trajectory_compatibility.rb', line 18 def warnings @warnings end |