Class: Rafflesia::OntologyReleaseCoverageRelationData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  byte_count: :byte_count,
  domain: :domain,
  expected_schema_hash: :expected_schema_hash,
  expected_schema_version: :expected_schema_version,
  is_published: :is_published,
  is_queryable: :is_queryable,
  is_schema_current: :is_schema_current,
  missing_physical_columns: :missing_physical_columns,
  object: :object,
  object_status: :object_status,
  object_unavailable_reason: :object_unavailable_reason,
  observed_schema_hash: :observed_schema_hash,
  observed_schema_version: :observed_schema_version,
  physical_check_unavailable_reason: :physical_check_unavailable_reason,
  physical_schema_status: :physical_schema_status,
  relation: :relation,
  row_count: :row_count,
  status: :status,
  unavailable_reason: :unavailable_reason,
  undeclared_physical_columns: :undeclared_physical_columns
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyReleaseCoverageRelationData

Returns a new instance of OntologyReleaseCoverageRelationData.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 53

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @byte_count = hash[:byte_count]
  @domain = hash[:domain]
  @expected_schema_hash = hash[:expected_schema_hash]
  @expected_schema_version = hash[:expected_schema_version]
  @is_published = hash[:is_published]
  @is_queryable = hash[:is_queryable]
  @is_schema_current = hash[:is_schema_current]
  @missing_physical_columns = (hash[:missing_physical_columns] || [])
  @object = hash[:object]
  @object_status = hash[:object_status]
  @object_unavailable_reason = hash[:object_unavailable_reason]
  @observed_schema_hash = hash[:observed_schema_hash]
  @observed_schema_version = hash[:observed_schema_version]
  @physical_check_unavailable_reason = hash[:physical_check_unavailable_reason]
  @physical_schema_status = hash[:physical_schema_status]
  @relation = hash[:relation]
  @row_count = hash[:row_count]
  @status = hash[:status]
  @unavailable_reason = hash[:unavailable_reason]
  @undeclared_physical_columns = (hash[:undeclared_physical_columns] || [])
end

Instance Attribute Details

#byte_countObject

Returns the value of attribute byte_count.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def byte_count
  @byte_count
end

#domainObject

Returns the value of attribute domain.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def domain
  @domain
end

#expected_schema_hashObject

Returns the value of attribute expected_schema_hash.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def expected_schema_hash
  @expected_schema_hash
end

#expected_schema_versionObject

Returns the value of attribute expected_schema_version.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def expected_schema_version
  @expected_schema_version
end

#is_publishedObject

Returns the value of attribute is_published.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def is_published
  @is_published
end

#is_queryableObject

Returns the value of attribute is_queryable.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def is_queryable
  @is_queryable
end

#is_schema_currentObject

Returns the value of attribute is_schema_current.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def is_schema_current
  @is_schema_current
end

#missing_physical_columnsObject

Returns the value of attribute missing_physical_columns.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def missing_physical_columns
  @missing_physical_columns
end

#objectObject

Returns the value of attribute object.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def object
  @object
end

#object_statusObject

Returns the value of attribute object_status.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def object_status
  @object_status
end

#object_unavailable_reasonObject

Returns the value of attribute object_unavailable_reason.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def object_unavailable_reason
  @object_unavailable_reason
end

#observed_schema_hashObject

Returns the value of attribute observed_schema_hash.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def observed_schema_hash
  @observed_schema_hash
end

#observed_schema_versionObject

Returns the value of attribute observed_schema_version.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def observed_schema_version
  @observed_schema_version
end

#physical_check_unavailable_reasonObject

Returns the value of attribute physical_check_unavailable_reason.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def physical_check_unavailable_reason
  @physical_check_unavailable_reason
end

#physical_schema_statusObject

Returns the value of attribute physical_schema_status.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def physical_schema_status
  @physical_schema_status
end

#relationObject

Returns the value of attribute relation.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def relation
  @relation
end

#row_countObject

Returns the value of attribute row_count.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def row_count
  @row_count
end

#statusObject

Returns the value of attribute status.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def status
  @status
end

#unavailable_reasonObject

Returns the value of attribute unavailable_reason.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def unavailable_reason
  @unavailable_reason
end

#undeclared_physical_columnsObject

Returns the value of attribute undeclared_physical_columns.



31
32
33
# File 'lib/rafflesia/ontology/ontology_release_coverage_relation_data.rb', line 31

def undeclared_physical_columns
  @undeclared_physical_columns
end