Class: Rafflesia::SimulationGromacsStageLog

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

Instance Method Summary collapse

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_truncatedObject

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

#objectObject

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_256Object

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_bytesObject

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

#streamObject

Returns the value of attribute stream.



17
18
19
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17

def stream
  @stream
end

#tailObject

Returns the value of attribute tail.



17
18
19
# File 'lib/rafflesia/simulations/simulation_gromacs_stage_log.rb', line 17

def tail
  @tail
end