Class: Rafflesia::SimulationRuntimeBootstrapPackage

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

Instance Method Summary collapse

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

#errorObject

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_installedObject

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_requiredObject

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

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16

def name
  @name
end

#versionObject

Returns the value of attribute version.



16
17
18
# File 'lib/rafflesia/simulations/simulation_runtime_bootstrap_package.rb', line 16

def version
  @version
end