Class: Rafflesia::SimulationGromacsStageOutputObject

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

Instance Method Summary collapse

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

#formatObject

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_presentObject

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_pathObject

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

#objectObject

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

#pathObject

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_refObject

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

#roleObject

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_256Object

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_bytesObject

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