Class: Rafflesia::SimulationSelectionCapability
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationSelectionCapability
- Defined in:
- lib/rafflesia/simulations/simulation_selection_capability.rb
Constant Summary collapse
- HASH_ATTRS =
{ atom_count: :atom_count, error: :error, is_supported: :is_supported, selection: :selection }.freeze
Instance Attribute Summary collapse
-
#atom_count ⇒ Object
Returns the value of attribute atom_count.
-
#error ⇒ Object
Returns the value of attribute error.
-
#is_supported ⇒ Object
Returns the value of attribute is_supported.
-
#selection ⇒ Object
Returns the value of attribute selection.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationSelectionCapability
constructor
A new instance of SimulationSelectionCapability.
Constructor Details
#initialize(json) ⇒ SimulationSelectionCapability
Returns a new instance of SimulationSelectionCapability.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/simulations/simulation_selection_capability.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @atom_count = hash[:atom_count] @error = hash[:error] @is_supported = hash[:is_supported] @selection = hash[:selection] end |
Instance Attribute Details
#atom_count ⇒ Object
Returns the value of attribute atom_count.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_selection_capability.rb', line 15 def atom_count @atom_count end |
#error ⇒ Object
Returns the value of attribute error.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_selection_capability.rb', line 15 def error @error end |
#is_supported ⇒ Object
Returns the value of attribute is_supported.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_selection_capability.rb', line 15 def is_supported @is_supported end |
#selection ⇒ Object
Returns the value of attribute selection.
15 16 17 |
# File 'lib/rafflesia/simulations/simulation_selection_capability.rb', line 15 def selection @selection end |