Class: Rafflesia::OntologySnapshotSummaryData

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

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  is_current: :is_current,
  object: :object,
  ontology_digest: :ontology_digest,
  ontology_version: :ontology_version,
  relation_count: :relation_count,
  relationship_count: :relationship_count,
  snapshot_digest: :snapshot_digest,
  source_digest: :source_digest,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologySnapshotSummaryData

Returns a new instance of OntologySnapshotSummaryData.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @id = hash[:id]
  @is_current = hash[:is_current]
  @object = hash[:object]
  @ontology_digest = hash[:ontology_digest]
  @ontology_version = hash[:ontology_version]
  @relation_count = hash[:relation_count]
  @relationship_count = hash[:relationship_count]
  @snapshot_digest = hash[:snapshot_digest]
  @source_digest = hash[:source_digest]
  @url = hash[:url]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def id
  @id
end

#is_currentObject

Returns the value of attribute is_current.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def is_current
  @is_current
end

#objectObject

Returns the value of attribute object.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def object
  @object
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def ontology_digest
  @ontology_digest
end

#ontology_versionObject

Returns the value of attribute ontology_version.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def ontology_version
  @ontology_version
end

#relation_countObject

Returns the value of attribute relation_count.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def relation_count
  @relation_count
end

#relationship_countObject

Returns the value of attribute relationship_count.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def relationship_count
  @relationship_count
end

#snapshot_digestObject

Returns the value of attribute snapshot_digest.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def snapshot_digest
  @snapshot_digest
end

#source_digestObject

Returns the value of attribute source_digest.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def source_digest
  @source_digest
end

#urlObject

Returns the value of attribute url.



21
22
23
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21

def url
  @url
end