Class: Rafflesia::RelationReleasePublishedArtifact

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/relation_release_published_artifact.rb

Constant Summary collapse

HASH_ATTRS =
{
  is_query_ready: :is_query_ready,
  object: :object,
  relation: :relation,
  row_count: :row_count,
  schema_hash: :schema_hash,
  schema_version: :schema_version,
  sha256: :sha_256,
  size_bytes: :size_bytes
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RelationReleasePublishedArtifact

Returns a new instance of RelationReleasePublishedArtifact.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @is_query_ready = hash[:is_query_ready]
  @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil
  @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]
end

Instance Attribute Details

#is_query_readyObject

Returns the value of attribute is_query_ready.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def is_query_ready
  @is_query_ready
end

#objectObject

Returns the value of attribute object.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def object
  @object
end

#relationObject

Returns the value of attribute relation.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def relation
  @relation
end

#row_countObject

Returns the value of attribute row_count.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def row_count
  @row_count
end

#schema_hashObject

Returns the value of attribute schema_hash.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def schema_hash
  @schema_hash
end

#schema_versionObject

Returns the value of attribute schema_version.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def schema_version
  @schema_version
end

#sha_256Object

Returns the value of attribute sha_256.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



19
20
21
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19

def size_bytes
  @size_bytes
end