Class: Rafflesia::OntologyVocabularyData

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

Constant Summary collapse

HASH_ATTRS =
{
  description: :description,
  dimension: :dimension,
  entity_type: :entity_type,
  example: :example,
  id: :id,
  interval: :interval,
  kind: :kind,
  label: :label,
  name: :name,
  object: :object,
  ontology_digest: :ontology_digest,
  ontology_version: :ontology_version,
  origin: :origin,
  reference: :reference,
  symbol: :symbol,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyVocabularyData

Returns a new instance of OntologyVocabularyData.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 45

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @description = hash[:description]
  @dimension = hash[:dimension]
  @entity_type = hash[:entity_type]
  @example = hash[:example]
  @id = hash[:id]
  @interval = hash[:interval]
  @kind = hash[:kind]
  @label = hash[:label]
  @name = hash[:name]
  @object = hash[:object]
  @ontology_digest = hash[:ontology_digest]
  @ontology_version = hash[:ontology_version]
  @origin = hash[:origin]
  @reference = hash[:reference]
  @symbol = hash[:symbol]
  @url = hash[:url]
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def description
  @description
end

#dimensionObject

Returns the value of attribute dimension.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def dimension
  @dimension
end

#entity_typeObject

Returns the value of attribute entity_type.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def entity_type
  @entity_type
end

#exampleObject

Returns the value of attribute example.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def example
  @example
end

#idObject

Returns the value of attribute id.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def id
  @id
end

#intervalObject

Returns the value of attribute interval.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def interval
  @interval
end

#kindObject

Returns the value of attribute kind.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def kind
  @kind
end

#labelObject

Returns the value of attribute label.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def label
  @label
end

#nameObject

Returns the value of attribute name.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def name
  @name
end

#objectObject

Returns the value of attribute object.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def object
  @object
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def ontology_digest
  @ontology_digest
end

#ontology_versionObject

Returns the value of attribute ontology_version.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def ontology_version
  @ontology_version
end

#originObject

Returns the value of attribute origin.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def origin
  @origin
end

#referenceObject

Returns the value of attribute reference.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def reference
  @reference
end

#symbolObject

Returns the value of attribute symbol.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def symbol
  @symbol
end

#urlObject

Returns the value of attribute url.



27
28
29
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27

def url
  @url
end