Class: Rafflesia::OntologyRelationSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyRelationSummaryData
- Defined in:
- lib/rafflesia/ontology/ontology_relation_summary_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ aliases: :aliases, column_count: :column_count, description: :description, domain: :domain, entity_type: :entity_type, grain: :grain, id: :id, matched_fields: :matched_fields, matched_term_count: :matched_term_count, matched_terms: :matched_terms, name: :name, object: :object, ontology_digest: :ontology_digest, ontology_version: :ontology_version, primary_key: :primary_key, relationship_count: :relationship_count, schema_hash: :schema_hash, schema_version: :schema_version, url: :url }.freeze
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#column_count ⇒ Object
Returns the value of attribute column_count.
-
#description ⇒ Object
Returns the value of attribute description.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#grain ⇒ Object
Returns the value of attribute grain.
-
#id ⇒ Object
Returns the value of attribute id.
-
#matched_fields ⇒ Object
Returns the value of attribute matched_fields.
-
#matched_term_count ⇒ Object
Returns the value of attribute matched_term_count.
-
#matched_terms ⇒ Object
Returns the value of attribute matched_terms.
-
#name ⇒ Object
Returns the value of attribute name.
-
#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.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#relationship_count ⇒ Object
Returns the value of attribute relationship_count.
-
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyRelationSummaryData
constructor
A new instance of OntologyRelationSummaryData.
Constructor Details
#initialize(json) ⇒ OntologyRelationSummaryData
Returns a new instance of OntologyRelationSummaryData.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 51 def initialize(json) super() hash = self.class.normalize(json) @aliases = (hash[:aliases] || []) @column_count = hash[:column_count] @description = hash[:description] @domain = hash[:domain] @entity_type = hash[:entity_type] @grain = hash[:grain] @id = hash[:id] @matched_fields = (hash[:matched_fields] || []) @matched_term_count = hash[:matched_term_count] @matched_terms = (hash[:matched_terms] || []) @name = hash[:name] @object = hash[:object] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @primary_key = (hash[:primary_key] || []) @relationship_count = hash[:relationship_count] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] @url = hash[:url] end |
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def aliases @aliases end |
#column_count ⇒ Object
Returns the value of attribute column_count.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def column_count @column_count end |
#description ⇒ Object
Returns the value of attribute description.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def description @description end |
#domain ⇒ Object
Returns the value of attribute domain.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def domain @domain end |
#entity_type ⇒ Object
Returns the value of attribute entity_type.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def entity_type @entity_type end |
#grain ⇒ Object
Returns the value of attribute grain.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def grain @grain end |
#id ⇒ Object
Returns the value of attribute id.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def id @id end |
#matched_fields ⇒ Object
Returns the value of attribute matched_fields.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def matched_fields @matched_fields end |
#matched_term_count ⇒ Object
Returns the value of attribute matched_term_count.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def matched_term_count @matched_term_count end |
#matched_terms ⇒ Object
Returns the value of attribute matched_terms.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def matched_terms @matched_terms end |
#name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def object @object end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def ontology_version @ontology_version end |
#primary_key ⇒ Object
Returns the value of attribute primary_key.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def primary_key @primary_key end |
#relationship_count ⇒ Object
Returns the value of attribute relationship_count.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def relationship_count @relationship_count end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def schema_version @schema_version end |
#url ⇒ Object
Returns the value of attribute url.
30 31 32 |
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30 def url @url end |