Class: Rafflesia::RelationReleasePublicationArtifact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RelationReleasePublicationArtifact
- Defined in:
- lib/rafflesia/datasets/relation_release_publication_artifact.rb
Constant Summary collapse
- HASH_ATTRS =
{ format: :format, object_id: :object_id, path: :path, relation: :relation, row_count: :row_count, schema_hash: :schema_hash, schema_version: :schema_version, sha256: :sha_256, size_bytes: :size_bytes, tool_run_id: :tool_run_id }.freeze
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#path ⇒ Object
Returns the value of attribute path.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#tool_run_id ⇒ Object
Returns the value of attribute tool_run_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ RelationReleasePublicationArtifact
constructor
A new instance of RelationReleasePublicationArtifact.
Constructor Details
#initialize(json) ⇒ RelationReleasePublicationArtifact
Returns a new instance of RelationReleasePublicationArtifact.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @format = hash[:format] @object_id = hash[:object_id] @path = hash[:path] @relation = hash[:relation] @row_count = hash[:row_count] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @tool_run_id = hash[:tool_run_id] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def format @format end |
#object_id ⇒ Object
Returns the value of attribute object_id.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def object_id @object_id end |
#path ⇒ Object
Returns the value of attribute path.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def path @path end |
#relation ⇒ Object
Returns the value of attribute relation.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def relation @relation end |
#row_count ⇒ Object
Returns the value of attribute row_count.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def row_count @row_count end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def schema_version @schema_version end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def size_bytes @size_bytes end |
#tool_run_id ⇒ Object
Returns the value of attribute tool_run_id.
21 22 23 |
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21 def tool_run_id @tool_run_id end |