Class: Rafflesia::RelationRelease
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RelationRelease
- Defined in:
- lib/rafflesia/relation_releases/relation_release.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, availability: :availability, byte_count: :byte_count, database: :database, id: :id, integrity_status: :integrity_status, integrity_warnings: :integrity_warnings, is_complete: :is_complete, is_queryable: :is_queryable, is_release_consistent: :is_release_consistent, is_schema_consistent: :is_schema_consistent, object: :object, relation: :relation, relation_digest: :relation_digest, relation_id: :relation_id, release: :release, release_digest: :release_digest, row_count: :row_count, schema_hash: :schema_hash, schema_version: :schema_version, selector: :selector, unavailable_detail: :unavailable_detail, unavailable_reason: :unavailable_reason }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#availability ⇒ Object
Returns the value of attribute availability.
-
#byte_count ⇒ Object
Returns the value of attribute byte_count.
-
#database ⇒ Object
Returns the value of attribute database.
-
#id ⇒ Object
Returns the value of attribute id.
-
#integrity_status ⇒ Object
Returns the value of attribute integrity_status.
-
#integrity_warnings ⇒ Object
Returns the value of attribute integrity_warnings.
-
#is_complete ⇒ Object
Returns the value of attribute is_complete.
-
#is_queryable ⇒ Object
Returns the value of attribute is_queryable.
-
#is_release_consistent ⇒ Object
Returns the value of attribute is_release_consistent.
-
#is_schema_consistent ⇒ Object
Returns the value of attribute is_schema_consistent.
-
#object ⇒ Object
Returns the value of attribute object.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
-
#relation_id ⇒ Object
Returns the value of attribute relation_id.
-
#release ⇒ Object
Returns the value of attribute release.
-
#release_digest ⇒ Object
Returns the value of attribute release_digest.
-
#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.
-
#selector ⇒ Object
Returns the value of attribute selector.
-
#unavailable_detail ⇒ Object
Returns the value of attribute unavailable_detail.
-
#unavailable_reason ⇒ Object
Returns the value of attribute unavailable_reason.
Instance Method Summary collapse
-
#initialize(json) ⇒ RelationRelease
constructor
A new instance of RelationRelease.
Constructor Details
#initialize(json) ⇒ RelationRelease
Returns a new instance of RelationRelease.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 59 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @availability = hash[:availability] @byte_count = hash[:byte_count] @database = hash[:database] @id = hash[:id] @integrity_status = hash[:integrity_status] @integrity_warnings = (hash[:integrity_warnings] || []) @is_complete = hash[:is_complete] @is_queryable = hash[:is_queryable] @is_release_consistent = hash[:is_release_consistent] @is_schema_consistent = hash[:is_schema_consistent] @object = hash[:object] @relation = hash[:relation] @relation_digest = hash[:relation_digest] @relation_id = hash[:relation_id] @release = hash[:release] @release_digest = hash[:release_digest] @row_count = hash[:row_count] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] @selector = hash[:selector] @unavailable_detail = hash[:unavailable_detail] @unavailable_reason = hash[:unavailable_reason] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def artifact_count @artifact_count end |
#availability ⇒ Object
Returns the value of attribute availability.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def availability @availability end |
#byte_count ⇒ Object
Returns the value of attribute byte_count.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def byte_count @byte_count end |
#database ⇒ Object
Returns the value of attribute database.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def database @database end |
#id ⇒ Object
Returns the value of attribute id.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def id @id end |
#integrity_status ⇒ Object
Returns the value of attribute integrity_status.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def integrity_status @integrity_status end |
#integrity_warnings ⇒ Object
Returns the value of attribute integrity_warnings.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def integrity_warnings @integrity_warnings end |
#is_complete ⇒ Object
Returns the value of attribute is_complete.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def is_complete @is_complete end |
#is_queryable ⇒ Object
Returns the value of attribute is_queryable.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def is_queryable @is_queryable end |
#is_release_consistent ⇒ Object
Returns the value of attribute is_release_consistent.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def is_release_consistent @is_release_consistent end |
#is_schema_consistent ⇒ Object
Returns the value of attribute is_schema_consistent.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def is_schema_consistent @is_schema_consistent end |
#object ⇒ Object
Returns the value of attribute object.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def object @object end |
#relation ⇒ Object
Returns the value of attribute relation.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def relation @relation end |
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def relation_digest @relation_digest end |
#relation_id ⇒ Object
Returns the value of attribute relation_id.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def relation_id @relation_id end |
#release ⇒ Object
Returns the value of attribute release.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def release @release end |
#release_digest ⇒ Object
Returns the value of attribute release_digest.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def release_digest @release_digest end |
#row_count ⇒ Object
Returns the value of attribute row_count.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def row_count @row_count end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def schema_version @schema_version end |
#selector ⇒ Object
Returns the value of attribute selector.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def selector @selector end |
#unavailable_detail ⇒ Object
Returns the value of attribute unavailable_detail.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def unavailable_detail @unavailable_detail end |
#unavailable_reason ⇒ Object
Returns the value of attribute unavailable_reason.
34 35 36 |
# File 'lib/rafflesia/relation_releases/relation_release.rb', line 34 def unavailable_reason @unavailable_reason end |