Class: Rafflesia::SimulationGromacsStageLog
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsStageLog
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_stage_log.rb
Constant Summary collapse
- HASH_ATTRS =
{ is_truncated: :is_truncated, object: :object, sha256: :sha_256, size_bytes: :size_bytes, stream: :stream, tail: :tail }.freeze
Instance Attribute Summary collapse
-
#is_truncated ⇒ Object
Returns the value of attribute is_truncated.
-
#object ⇒ Object
Returns the value of attribute object.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#stream ⇒ Object
Returns the value of attribute stream.
-
#tail ⇒ Object
Returns the value of attribute tail.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsStageLog
constructor
A new instance of SimulationGromacsStageLog.
Constructor Details
#initialize(json) ⇒ SimulationGromacsStageLog
Returns a new instance of SimulationGromacsStageLog.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @is_truncated = hash[:is_truncated] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @stream = hash[:stream] @tail = hash[:tail] end |
Instance Attribute Details
#is_truncated ⇒ Object
Returns the value of attribute is_truncated.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17 def is_truncated @is_truncated end |
#object ⇒ Object
Returns the value of attribute object.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17 def object @object end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17 def size_bytes @size_bytes end |
#stream ⇒ Object
Returns the value of attribute stream.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17 def stream @stream end |
#tail ⇒ Object
Returns the value of attribute tail.
17 18 19 |
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17 def tail @tail end |