Class: Rafflesia::ModelReleaseManifest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ModelReleaseManifest
- Defined in:
- lib/rafflesia/foundry/model_release_manifest.rb
Constant Summary collapse
- HASH_ATTRS =
{ architecture: :architecture, capabilities: :capabilities, configuration_digest: :configuration_digest, dependency_closure_status: :dependency_closure_status, evaluations: :evaluations, framework: :framework, license: :license, parameter_count: :parameter_count, upstream_publisher: :upstream_publisher, upstream_revision: :upstream_revision, weight_digest: :weight_digest, weight_format: :weight_format, weight_status: :weight_status }.freeze
Instance Attribute Summary collapse
-
#architecture ⇒ Object
Returns the value of attribute architecture.
-
#capabilities ⇒ Object
Returns the value of attribute capabilities.
-
#configuration_digest ⇒ Object
Returns the value of attribute configuration_digest.
-
#dependency_closure_status ⇒ Object
Returns the value of attribute dependency_closure_status.
-
#evaluations ⇒ Object
Returns the value of attribute evaluations.
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#license ⇒ Object
Returns the value of attribute license.
-
#parameter_count ⇒ Object
Returns the value of attribute parameter_count.
-
#upstream_publisher ⇒ Object
Returns the value of attribute upstream_publisher.
-
#upstream_revision ⇒ Object
Returns the value of attribute upstream_revision.
-
#weight_digest ⇒ Object
Returns the value of attribute weight_digest.
-
#weight_format ⇒ Object
Returns the value of attribute weight_format.
-
#weight_status ⇒ Object
Returns the value of attribute weight_status.
Instance Method Summary collapse
-
#initialize(json) ⇒ ModelReleaseManifest
constructor
A new instance of ModelReleaseManifest.
Constructor Details
#initialize(json) ⇒ ModelReleaseManifest
Returns a new instance of ModelReleaseManifest.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @architecture = hash[:architecture] @capabilities = (hash[:capabilities] || []).map { |item| item ? Rafflesia::ModelCapability.new(item) : nil } @configuration_digest = hash[:configuration_digest] @dependency_closure_status = hash[:dependency_closure_status] @evaluations = (hash[:evaluations] || []).map { |item| item ? Rafflesia::ModelEvaluation.new(item) : nil } @framework = hash[:framework] @license = hash[:license] @parameter_count = hash[:parameter_count] @upstream_publisher = hash[:upstream_publisher] @upstream_revision = hash[:upstream_revision] @weight_digest = hash[:weight_digest] @weight_format = hash[:weight_format] @weight_status = hash[:weight_status] end |
Instance Attribute Details
#architecture ⇒ Object
Returns the value of attribute architecture.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def architecture @architecture end |
#capabilities ⇒ Object
Returns the value of attribute capabilities.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def capabilities @capabilities end |
#configuration_digest ⇒ Object
Returns the value of attribute configuration_digest.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def configuration_digest @configuration_digest end |
#dependency_closure_status ⇒ Object
Returns the value of attribute dependency_closure_status.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def dependency_closure_status @dependency_closure_status end |
#evaluations ⇒ Object
Returns the value of attribute evaluations.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def evaluations @evaluations end |
#framework ⇒ Object
Returns the value of attribute framework.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def framework @framework end |
#license ⇒ Object
Returns the value of attribute license.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def license @license end |
#parameter_count ⇒ Object
Returns the value of attribute parameter_count.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def parameter_count @parameter_count end |
#upstream_publisher ⇒ Object
Returns the value of attribute upstream_publisher.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def upstream_publisher @upstream_publisher end |
#upstream_revision ⇒ Object
Returns the value of attribute upstream_revision.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def upstream_revision @upstream_revision end |
#weight_digest ⇒ Object
Returns the value of attribute weight_digest.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def weight_digest @weight_digest end |
#weight_format ⇒ Object
Returns the value of attribute weight_format.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def weight_format @weight_format end |
#weight_status ⇒ Object
Returns the value of attribute weight_status.
24 25 26 |
# File 'lib/rafflesia/foundry/model_release_manifest.rb', line 24 def weight_status @weight_status end |