Class: Rafflesia::OntologyRelationSummaryData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#aliasesObject

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_countObject

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

#descriptionObject

Returns the value of attribute description.



30
31
32
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30

def description
  @description
end

#domainObject

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_typeObject

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

#grainObject

Returns the value of attribute grain.



30
31
32
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30

def grain
  @grain
end

#idObject

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_fieldsObject

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_countObject

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_termsObject

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

#nameObject

Returns the value of attribute name.



30
31
32
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30

def name
  @name
end

#objectObject

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_digestObject

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_versionObject

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_keyObject

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_countObject

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_hashObject

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_versionObject

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

#urlObject

Returns the value of attribute url.



30
31
32
# File 'lib/rafflesia/ontology/ontology_relation_summary_data.rb', line 30

def url
  @url
end