Class: Rafflesia::SimulationGromacsStageMaterializedInput
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsStageMaterializedInput
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate: :candidate, input: :input, local_path: :local_path, message: :message, object: :object, resolution: :resolution, sha256: :sha_256, size_bytes: :size_bytes, status: :status }.freeze
Instance Attribute Summary collapse
-
#candidate ⇒ Object
Returns the value of attribute candidate.
-
#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.
-
#object ⇒ Object
Returns the value of attribute object.
-
#resolution ⇒ Object
Returns the value of attribute resolution.
-
#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.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsStageMaterializedInput
constructor
A new instance of SimulationGromacsStageMaterializedInput.
Constructor Details
#initialize(json) ⇒ SimulationGromacsStageMaterializedInput
Returns a new instance of SimulationGromacsStageMaterializedInput.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @candidate = hash[:candidate] ? Rafflesia::SimulationGromacsInventoryEntry.new(hash[:candidate]) : nil @input = hash[:input] ? Rafflesia::SimulationGromacsFileRef.new(hash[:input]) : nil @local_path = hash[:local_path] @message = hash[:message] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @resolution = hash[:resolution] ? Rafflesia::SimulationGromacsInputResolution.new(hash[:resolution]) : nil @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @status = hash[:status] end |
Instance Attribute Details
#candidate ⇒ Object
Returns the value of attribute candidate.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def candidate @candidate end |
#input ⇒ Object
Returns the value of attribute input.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def input @input end |
#local_path ⇒ Object
Returns the value of attribute local_path.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def local_path @local_path end |
#message ⇒ Object
Returns the value of attribute message.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def @message end |
#object ⇒ Object
Returns the value of attribute object.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def object @object end |
#resolution ⇒ Object
Returns the value of attribute resolution.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def resolution @resolution end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def size_bytes @size_bytes end |
#status ⇒ Object
Returns the value of attribute status.
20 21 22 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_materialized_input.rb', line 20 def status @status end |