Class: Rafflesia::SimulationRuntimeBootstrapPackage
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationRuntimeBootstrapPackage
- Defined in:
- lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb
Constant Summary collapse
- HASH_ATTRS =
{ error: :error, is_installed: :is_installed, is_required: :is_required, name: :name, version: :version }.freeze
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#is_installed ⇒ Object
Returns the value of attribute is_installed.
-
#is_required ⇒ Object
Returns the value of attribute is_required.
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationRuntimeBootstrapPackage
constructor
A new instance of SimulationRuntimeBootstrapPackage.
Constructor Details
#initialize(json) ⇒ SimulationRuntimeBootstrapPackage
Returns a new instance of SimulationRuntimeBootstrapPackage.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @error = hash[:error] @is_installed = hash[:is_installed] @is_required = hash[:is_required] @name = hash[:name] @version = hash[:version] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16 def error @error end |
#is_installed ⇒ Object
Returns the value of attribute is_installed.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16 def is_installed @is_installed end |
#is_required ⇒ Object
Returns the value of attribute is_required.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16 def is_required @is_required end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
16 17 18 |
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16 def version @version end |