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