Class: Rafflesia::RelationReleasePublishedArtifact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RelationReleasePublishedArtifact
- 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
-
#is_query_ready ⇒ Object
Returns the value of attribute is_query_ready.
-
#object ⇒ Object
Returns the value of attribute object.
-
#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.
Instance Method Summary collapse
-
#initialize(json) ⇒ RelationReleasePublishedArtifact
constructor
A new instance of RelationReleasePublishedArtifact.
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_ready ⇒ Object
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 |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/rafflesia/datasets/relation_release_published_artifact.rb', line 19 def object @object end |
#relation ⇒ Object
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_count ⇒ Object
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_hash ⇒ Object
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_version ⇒ Object
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_256 ⇒ Object
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_bytes ⇒ Object
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 |