Class: Rafflesia::RelationReleasePublicationArtifact

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

Instance Method Summary collapse

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

#formatObject

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_idObject

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

#pathObject

Returns the value of attribute path.



21
22
23
# File 'lib/rafflesia/datasets/relation_release_publication_artifact.rb', line 21

def path
  @path
end

#relationObject

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_countObject

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_hashObject

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_versionObject

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_256Object

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_bytesObject

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_idObject

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