Class: Rafflesia::SimulationGromacsInputMaterialization
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsInputMaterialization
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate: :candidate, downloaded_object: :downloaded_object, input: :input, local_path: :local_path, message: :message, normalized_path: :normalized_path, object: :object, producer: :producer, resolution: :resolution, script_path: :script_path, sha256: :sha_256, size_bytes: :size_bytes, status: :status, target_relative_path: :target_relative_path }.freeze
Instance Attribute Summary collapse
-
#candidate ⇒ Object
Returns the value of attribute candidate.
-
#downloaded_object ⇒ Object
Returns the value of attribute downloaded_object.
-
#input ⇒ Object
Returns the value of attribute input.
-
#local_path ⇒ Object
Returns the value of attribute local_path.
-
#message ⇒ Object
Returns the value of attribute message.
-
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
-
#object ⇒ Object
Returns the value of attribute object.
-
#producer ⇒ Object
Returns the value of attribute producer.
-
#resolution ⇒ Object
Returns the value of attribute resolution.
-
#script_path ⇒ Object
Returns the value of attribute script_path.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#status ⇒ Object
Returns the value of attribute status.
-
#target_relative_path ⇒ Object
Returns the value of attribute target_relative_path.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsInputMaterialization
constructor
A new instance of SimulationGromacsInputMaterialization.
Constructor Details
#initialize(json) ⇒ SimulationGromacsInputMaterialization
Returns a new instance of SimulationGromacsInputMaterialization.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @candidate = hash[:candidate] ? Rafflesia::SimulationGromacsInventoryEntry.new(hash[:candidate]) : nil @downloaded_object = hash[:downloaded_object] ? Rafflesia::ObjectDownloadData.new(hash[:downloaded_object]) : nil @input = hash[:input] ? Rafflesia::SimulationGromacsFileRef.new(hash[:input]) : nil @local_path = hash[:local_path] @message = hash[:message] @normalized_path = hash[:normalized_path] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @producer = hash[:producer] @resolution = hash[:resolution] ? Rafflesia::SimulationGromacsInputResolution.new(hash[:resolution]) : nil @script_path = hash[:script_path] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @status = hash[:status] @target_relative_path = hash[:target_relative_path] end |
Instance Attribute Details
#candidate ⇒ Object
Returns the value of attribute candidate.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def candidate @candidate end |
#downloaded_object ⇒ Object
Returns the value of attribute downloaded_object.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def downloaded_object @downloaded_object end |
#input ⇒ Object
Returns the value of attribute input.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def input @input end |
#local_path ⇒ Object
Returns the value of attribute local_path.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def local_path @local_path end |
#message ⇒ Object
Returns the value of attribute message.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def @message end |
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def normalized_path @normalized_path end |
#object ⇒ Object
Returns the value of attribute object.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def object @object end |
#producer ⇒ Object
Returns the value of attribute producer.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def producer @producer end |
#resolution ⇒ Object
Returns the value of attribute resolution.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def resolution @resolution end |
#script_path ⇒ Object
Returns the value of attribute script_path.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def script_path @script_path end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def size_bytes @size_bytes end |
#status ⇒ Object
Returns the value of attribute status.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def status @status end |
#target_relative_path ⇒ Object
Returns the value of attribute target_relative_path.
25 26 27 |
# File 'lib/rafflesia/simulations/simulation_gromacs_input_materialization.rb', line 25 def target_relative_path @target_relative_path end |