Class: Rafflesia::OntologyVocabularyData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyVocabularyData
- 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
-
#description ⇒ Object
Returns the value of attribute description.
-
#dimension ⇒ Object
Returns the value of attribute dimension.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#example ⇒ Object
Returns the value of attribute example.
-
#id ⇒ Object
Returns the value of attribute id.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#label ⇒ Object
Returns the value of attribute label.
-
#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.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyVocabularyData
constructor
A new instance of OntologyVocabularyData.
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
#description ⇒ Object
Returns the value of attribute description.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def description @description end |
#dimension ⇒ Object
Returns the value of attribute dimension.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def dimension @dimension end |
#entity_type ⇒ Object
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 |
#example ⇒ Object
Returns the value of attribute example.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def example @example end |
#id ⇒ Object
Returns the value of attribute id.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def id @id end |
#interval ⇒ Object
Returns the value of attribute interval.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def interval @interval end |
#kind ⇒ Object
Returns the value of attribute kind.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def kind @kind end |
#label ⇒ Object
Returns the value of attribute label.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def object @object end |
#ontology_digest ⇒ Object
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_version ⇒ Object
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 |
#origin ⇒ Object
Returns the value of attribute origin.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def origin @origin end |
#reference ⇒ Object
Returns the value of attribute reference.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def reference @reference end |
#symbol ⇒ Object
Returns the value of attribute symbol.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def symbol @symbol end |
#url ⇒ Object
Returns the value of attribute url.
27 28 29 |
# File 'lib/rafflesia/ontology/ontology_vocabulary_data.rb', line 27 def url @url end |