Class: Rafflesia::DatasetProfileRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetProfileRef
- Defined in:
- lib/rafflesia/foundry/dataset_profile_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_id: :artifact_id, content_digest: :content_digest, id: :id, kind: :kind, tool_version: :tool_version, validation_status: :validation_status }.freeze
Instance Attribute Summary collapse
-
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
-
#content_digest ⇒ Object
Returns the value of attribute content_digest.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#tool_version ⇒ Object
Returns the value of attribute tool_version.
-
#validation_status ⇒ Object
Returns the value of attribute validation_status.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetProfileRef
constructor
A new instance of DatasetProfileRef.
Constructor Details
#initialize(json) ⇒ DatasetProfileRef
Returns a new instance of DatasetProfileRef.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @artifact_id = hash[:artifact_id] @content_digest = hash[:content_digest] @id = hash[:id] @kind = hash[:kind] @tool_version = hash[:tool_version] @validation_status = hash[:validation_status] end |
Instance Attribute Details
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
17 18 19 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 17 def artifact_id @artifact_id end |
#content_digest ⇒ Object
Returns the value of attribute content_digest.
17 18 19 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 17 def content_digest @content_digest end |
#id ⇒ Object
Returns the value of attribute id.
17 18 19 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 17 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
17 18 19 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 17 def kind @kind end |
#tool_version ⇒ Object
Returns the value of attribute tool_version.
17 18 19 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 17 def tool_version @tool_version end |
#validation_status ⇒ Object
Returns the value of attribute validation_status.
17 18 19 |
# File 'lib/rafflesia/foundry/dataset_profile_ref.rb', line 17 def validation_status @validation_status end |