Class: Rafflesia::OntologySnapshotSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologySnapshotSummaryData
- 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
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_current ⇒ Object
Returns the value of attribute is_current.
-
#object ⇒ Object
Returns the value of attribute object.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#relation_count ⇒ Object
Returns the value of attribute relation_count.
-
#relationship_count ⇒ Object
Returns the value of attribute relationship_count.
-
#snapshot_digest ⇒ Object
Returns the value of attribute snapshot_digest.
-
#source_digest ⇒ Object
Returns the value of attribute source_digest.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologySnapshotSummaryData
constructor
A new instance of OntologySnapshotSummaryData.
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
#id ⇒ Object
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_current ⇒ Object
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 |
#object ⇒ Object
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_digest ⇒ Object
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_version ⇒ Object
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_count ⇒ Object
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_count ⇒ Object
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_digest ⇒ Object
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_digest ⇒ Object
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 |
#url ⇒ Object
Returns the value of attribute url.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_snapshot_summary_data.rb', line 21 def url @url end |