Class: Rafflesia::SimulationGromacsFileRef

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_gromacs_file_ref.rb

Constant Summary collapse

HASH_ATTRS =
{
  command_index: :command_index,
  format: :format,
  is_dynamic: :is_dynamic,
  line_number: :line_number,
  normalized_path: :normalized_path,
  path: :path,
  role: :role,
  source_flag: :source_flag
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsFileRef

Returns a new instance of SimulationGromacsFileRef.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @command_index = hash[:command_index]
  @format = hash[:format]
  @is_dynamic = hash[:is_dynamic]
  @line_number = hash[:line_number]
  @normalized_path = hash[:normalized_path]
  @path = hash[:path]
  @role = hash[:role]
  @source_flag = hash[:source_flag]
end

Instance Attribute Details

#command_indexObject

Returns the value of attribute command_index.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def command_index
  @command_index
end

#formatObject

Returns the value of attribute format.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def format
  @format
end

#is_dynamicObject

Returns the value of attribute is_dynamic.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def is_dynamic
  @is_dynamic
end

#line_numberObject

Returns the value of attribute line_number.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def line_number
  @line_number
end

#normalized_pathObject

Returns the value of attribute normalized_path.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def normalized_path
  @normalized_path
end

#pathObject

Returns the value of attribute path.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def path
  @path
end

#roleObject

Returns the value of attribute role.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def role
  @role
end

#source_flagObject

Returns the value of attribute source_flag.



19
20
21
# File 'lib/rafflesia/simulations/simulation_gromacs_file_ref.rb', line 19

def source_flag
  @source_flag
end