Class: Rafflesia::SimulationGromacsMaterializeInputsData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsMaterializeInputsData
- Defined in:
- lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ downloaded_count: :downloaded_count, dynamic_count: :dynamic_count, input_count: :input_count, mappings: :mappings, materialized_count: :materialized_count, missing_count: :missing_count, output_dir: :output_dir, planned_output_count: :planned_output_count, preflight: :preflight, requested_stage_index: :requested_stage_index, schema_version: :schema_version, stage: :stage, unmaterialized_count: :unmaterialized_count }.freeze
Instance Attribute Summary collapse
-
#downloaded_count ⇒ Object
Returns the value of attribute downloaded_count.
-
#dynamic_count ⇒ Object
Returns the value of attribute dynamic_count.
-
#input_count ⇒ Object
Returns the value of attribute input_count.
-
#mappings ⇒ Object
Returns the value of attribute mappings.
-
#materialized_count ⇒ Object
Returns the value of attribute materialized_count.
-
#missing_count ⇒ Object
Returns the value of attribute missing_count.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#planned_output_count ⇒ Object
Returns the value of attribute planned_output_count.
-
#preflight ⇒ Object
Returns the value of attribute preflight.
-
#requested_stage_index ⇒ Object
Returns the value of attribute requested_stage_index.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#unmaterialized_count ⇒ Object
Returns the value of attribute unmaterialized_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsMaterializeInputsData
constructor
A new instance of SimulationGromacsMaterializeInputsData.
Constructor Details
#initialize(json) ⇒ SimulationGromacsMaterializeInputsData
Returns a new instance of SimulationGromacsMaterializeInputsData.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @downloaded_count = hash[:downloaded_count] @dynamic_count = hash[:dynamic_count] @input_count = hash[:input_count] @mappings = (hash[:mappings] || []).map { |item| item ? Rafflesia::SimulationGromacsInputMaterialization.new(item) : nil } @materialized_count = hash[:materialized_count] @missing_count = hash[:missing_count] @output_dir = hash[:output_dir] @planned_output_count = hash[:planned_output_count] @preflight = hash[:preflight] ? Rafflesia::SimulationGromacsPreflightData.new(hash[:preflight]) : nil @requested_stage_index = hash[:requested_stage_index] @schema_version = hash[:schema_version] @stage = hash[:stage] ? Rafflesia::SimulationGromacsPreflightStage.new(hash[:stage]) : nil @unmaterialized_count = hash[:unmaterialized_count] end |
Instance Attribute Details
#downloaded_count ⇒ Object
Returns the value of attribute downloaded_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def downloaded_count @downloaded_count end |
#dynamic_count ⇒ Object
Returns the value of attribute dynamic_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def dynamic_count @dynamic_count end |
#input_count ⇒ Object
Returns the value of attribute input_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def input_count @input_count end |
#mappings ⇒ Object
Returns the value of attribute mappings.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def mappings @mappings end |
#materialized_count ⇒ Object
Returns the value of attribute materialized_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def materialized_count @materialized_count end |
#missing_count ⇒ Object
Returns the value of attribute missing_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def missing_count @missing_count end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def output_dir @output_dir end |
#planned_output_count ⇒ Object
Returns the value of attribute planned_output_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def planned_output_count @planned_output_count end |
#preflight ⇒ Object
Returns the value of attribute preflight.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def preflight @preflight end |
#requested_stage_index ⇒ Object
Returns the value of attribute requested_stage_index.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def requested_stage_index @requested_stage_index end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def schema_version @schema_version end |
#stage ⇒ Object
Returns the value of attribute stage.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def stage @stage end |
#unmaterialized_count ⇒ Object
Returns the value of attribute unmaterialized_count.
24 25 26 |
# File 'lib/rafflesia/simulations/simulation_gromacs_materialize_inputs_data.rb', line 24 def unmaterialized_count @unmaterialized_count end |