Class: Rafflesia::OntologyReleaseManifest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/ontology_release_manifest.rb

Constant Summary collapse

HASH_ATTRS =
{
  coordinate_system_count: :coordinate_system_count,
  dataset_binding_kind: :dataset_binding_kind,
  entity_type_count: :entity_type_count,
  field_count: :field_count,
  identifier_namespace_count: :identifier_namespace_count,
  join_path_policy: :join_path_policy,
  ontology_digest: :ontology_digest,
  relation_count: :relation_count,
  relationship_count: :relationship_count,
  snapshot_artifact_id: :snapshot_artifact_id,
  source_digest: :source_digest
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyReleaseManifest

Returns a new instance of OntologyReleaseManifest.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @coordinate_system_count = hash[:coordinate_system_count]
  @dataset_binding_kind = hash[:dataset_binding_kind]
  @entity_type_count = hash[:entity_type_count]
  @field_count = hash[:field_count]
  @identifier_namespace_count = hash[:identifier_namespace_count]
  @join_path_policy = hash[:join_path_policy]
  @ontology_digest = hash[:ontology_digest]
  @relation_count = hash[:relation_count]
  @relationship_count = hash[:relationship_count]
  @snapshot_artifact_id = hash[:snapshot_artifact_id]
  @source_digest = hash[:source_digest]
end

Instance Attribute Details

#coordinate_system_countObject

Returns the value of attribute coordinate_system_count.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def coordinate_system_count
  @coordinate_system_count
end

#dataset_binding_kindObject

Returns the value of attribute dataset_binding_kind.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def dataset_binding_kind
  @dataset_binding_kind
end

#entity_type_countObject

Returns the value of attribute entity_type_count.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def entity_type_count
  @entity_type_count
end

#field_countObject

Returns the value of attribute field_count.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def field_count
  @field_count
end

#identifier_namespace_countObject

Returns the value of attribute identifier_namespace_count.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def identifier_namespace_count
  @identifier_namespace_count
end

#join_path_policyObject

Returns the value of attribute join_path_policy.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def join_path_policy
  @join_path_policy
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def ontology_digest
  @ontology_digest
end

#relation_countObject

Returns the value of attribute relation_count.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def relation_count
  @relation_count
end

#relationship_countObject

Returns the value of attribute relationship_count.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def relationship_count
  @relationship_count
end

#snapshot_artifact_idObject

Returns the value of attribute snapshot_artifact_id.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def snapshot_artifact_id
  @snapshot_artifact_id
end

#source_digestObject

Returns the value of attribute source_digest.



22
23
24
# File 'lib/rafflesia/foundry/ontology_release_manifest.rb', line 22

def source_digest
  @source_digest
end