Class: Rafflesia::BuildInfo
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BuildInfo
- Defined in:
- lib/rafflesia/simulations/build_info.rb
Constant Summary collapse
- HASH_ATTRS =
{ binary_digest: :binary_digest, binary_path: :binary_path, build_identity_message: :build_identity_message, build_identity_status: :build_identity_status, builder: :builder, built_at: :built_at, contract_digest: :contract_digest, current_source_digest: :current_source_digest, current_source_epoch_generation: :current_source_epoch_generation, current_source_revision: :current_source_revision, current_source_tree_status: :current_source_tree_status, freshness_message: :freshness_message, go_version: :go_version, launcher_freshness: :launcher_freshness, launcher_freshness_reason: :launcher_freshness_reason, launcher_observed_at: :launcher_observed_at, managed_build: :managed_build, source_digest: :source_digest, source_epoch_generation: :source_epoch_generation, source_freshness: :source_freshness, source_observed_at: :source_observed_at, source_revision: :source_revision, source_root: :source_root, source_tree_status: :source_tree_status, version: :version }.freeze
Instance Attribute Summary collapse
-
#binary_digest ⇒ Object
Returns the value of attribute binary_digest.
-
#binary_path ⇒ Object
Returns the value of attribute binary_path.
-
#build_identity_message ⇒ Object
Returns the value of attribute build_identity_message.
-
#build_identity_status ⇒ Object
Returns the value of attribute build_identity_status.
-
#builder ⇒ Object
Returns the value of attribute builder.
-
#built_at ⇒ Object
Returns the value of attribute built_at.
-
#contract_digest ⇒ Object
Returns the value of attribute contract_digest.
-
#current_source_digest ⇒ Object
Returns the value of attribute current_source_digest.
-
#current_source_epoch_generation ⇒ Object
Returns the value of attribute current_source_epoch_generation.
-
#current_source_revision ⇒ Object
Returns the value of attribute current_source_revision.
-
#current_source_tree_status ⇒ Object
Returns the value of attribute current_source_tree_status.
-
#freshness_message ⇒ Object
Returns the value of attribute freshness_message.
-
#go_version ⇒ Object
Returns the value of attribute go_version.
-
#launcher_freshness ⇒ Object
Returns the value of attribute launcher_freshness.
-
#launcher_freshness_reason ⇒ Object
Returns the value of attribute launcher_freshness_reason.
-
#launcher_observed_at ⇒ Object
Returns the value of attribute launcher_observed_at.
-
#managed_build ⇒ Object
Returns the value of attribute managed_build.
-
#source_digest ⇒ Object
Returns the value of attribute source_digest.
-
#source_epoch_generation ⇒ Object
Returns the value of attribute source_epoch_generation.
-
#source_freshness ⇒ Object
Returns the value of attribute source_freshness.
-
#source_observed_at ⇒ Object
Returns the value of attribute source_observed_at.
-
#source_revision ⇒ Object
Returns the value of attribute source_revision.
-
#source_root ⇒ Object
Returns the value of attribute source_root.
-
#source_tree_status ⇒ Object
Returns the value of attribute source_tree_status.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ BuildInfo
constructor
A new instance of BuildInfo.
Constructor Details
#initialize(json) ⇒ BuildInfo
Returns a new instance of BuildInfo.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/rafflesia/simulations/build_info.rb', line 63 def initialize(json) super() hash = self.class.normalize(json) @binary_digest = hash[:binary_digest] @binary_path = hash[:binary_path] @build_identity_message = hash[:build_identity_message] @build_identity_status = hash[:build_identity_status] @builder = hash[:builder] @built_at = hash[:built_at] @contract_digest = hash[:contract_digest] @current_source_digest = hash[:current_source_digest] @current_source_epoch_generation = hash[:current_source_epoch_generation] @current_source_revision = hash[:current_source_revision] @current_source_tree_status = hash[:current_source_tree_status] @freshness_message = hash[:freshness_message] @go_version = hash[:go_version] @launcher_freshness = hash[:launcher_freshness] @launcher_freshness_reason = hash[:launcher_freshness_reason] @launcher_observed_at = hash[:launcher_observed_at] @managed_build = hash[:managed_build] @source_digest = hash[:source_digest] @source_epoch_generation = hash[:source_epoch_generation] @source_freshness = hash[:source_freshness] @source_observed_at = hash[:source_observed_at] @source_revision = hash[:source_revision] @source_root = hash[:source_root] @source_tree_status = hash[:source_tree_status] @version = hash[:version] end |
Instance Attribute Details
#binary_digest ⇒ Object
Returns the value of attribute binary_digest.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def binary_digest @binary_digest end |
#binary_path ⇒ Object
Returns the value of attribute binary_path.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def binary_path @binary_path end |
#build_identity_message ⇒ Object
Returns the value of attribute build_identity_message.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def @build_identity_message end |
#build_identity_status ⇒ Object
Returns the value of attribute build_identity_status.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def build_identity_status @build_identity_status end |
#builder ⇒ Object
Returns the value of attribute builder.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def builder @builder end |
#built_at ⇒ Object
Returns the value of attribute built_at.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def built_at @built_at end |
#contract_digest ⇒ Object
Returns the value of attribute contract_digest.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def contract_digest @contract_digest end |
#current_source_digest ⇒ Object
Returns the value of attribute current_source_digest.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def current_source_digest @current_source_digest end |
#current_source_epoch_generation ⇒ Object
Returns the value of attribute current_source_epoch_generation.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def current_source_epoch_generation @current_source_epoch_generation end |
#current_source_revision ⇒ Object
Returns the value of attribute current_source_revision.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def current_source_revision @current_source_revision end |
#current_source_tree_status ⇒ Object
Returns the value of attribute current_source_tree_status.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def current_source_tree_status @current_source_tree_status end |
#freshness_message ⇒ Object
Returns the value of attribute freshness_message.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def @freshness_message end |
#go_version ⇒ Object
Returns the value of attribute go_version.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def go_version @go_version end |
#launcher_freshness ⇒ Object
Returns the value of attribute launcher_freshness.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def launcher_freshness @launcher_freshness end |
#launcher_freshness_reason ⇒ Object
Returns the value of attribute launcher_freshness_reason.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def launcher_freshness_reason @launcher_freshness_reason end |
#launcher_observed_at ⇒ Object
Returns the value of attribute launcher_observed_at.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def launcher_observed_at @launcher_observed_at end |
#managed_build ⇒ Object
Returns the value of attribute managed_build.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def managed_build @managed_build end |
#source_digest ⇒ Object
Returns the value of attribute source_digest.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_digest @source_digest end |
#source_epoch_generation ⇒ Object
Returns the value of attribute source_epoch_generation.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_epoch_generation @source_epoch_generation end |
#source_freshness ⇒ Object
Returns the value of attribute source_freshness.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_freshness @source_freshness end |
#source_observed_at ⇒ Object
Returns the value of attribute source_observed_at.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_observed_at @source_observed_at end |
#source_revision ⇒ Object
Returns the value of attribute source_revision.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_revision @source_revision end |
#source_root ⇒ Object
Returns the value of attribute source_root.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_root @source_root end |
#source_tree_status ⇒ Object
Returns the value of attribute source_tree_status.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def source_tree_status @source_tree_status end |
#version ⇒ Object
Returns the value of attribute version.
36 37 38 |
# File 'lib/rafflesia/simulations/build_info.rb', line 36 def version @version end |