Class: Rafflesia::SimulationSelectionCapability

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_countObject

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

#errorObject

Returns the value of attribute error.



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

def error
  @error
end

#is_supportedObject

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

#selectionObject

Returns the value of attribute selection.



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

def selection
  @selection
end