Class: OntologyUnited::DSL::OntologyImport
- Inherits:
-
OntologyEntityBase
- Object
- OntologyEntityBase
- OntologyUnited::DSL::OntologyImport
- Defined in:
- lib/ontology-united/dsl/ontology_import.rb
Instance Attribute Summary collapse
-
#iri ⇒ Object
readonly
Returns the value of attribute iri.
-
#ontology ⇒ Object
readonly
Returns the value of attribute ontology.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Attributes inherited from OntologyEntityBase
Instance Method Summary collapse
-
#initialize(arg) ⇒ OntologyImport
constructor
A new instance of OntologyImport.
- #to_s(serializer: OntologyUnited::Serializer::DEFAULT.new) ⇒ Object
Methods inherited from OntologyEntityBase
Methods included from VariableStore::Helper
Constructor Details
#initialize(arg) ⇒ OntologyImport
Returns a new instance of OntologyImport.
8 9 10 11 12 |
# File 'lib/ontology-united/dsl/ontology_import.rb', line 8 def initialize(arg) @iri = arg if arg.is_a?(String) @ontology = arg if arg.is_a?(Ontology) @subject = arg end |
Instance Attribute Details
#iri ⇒ Object (readonly)
Returns the value of attribute iri.
5 6 7 |
# File 'lib/ontology-united/dsl/ontology_import.rb', line 5 def iri @iri end |
#ontology ⇒ Object (readonly)
Returns the value of attribute ontology.
5 6 7 |
# File 'lib/ontology-united/dsl/ontology_import.rb', line 5 def ontology @ontology end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
5 6 7 |
# File 'lib/ontology-united/dsl/ontology_import.rb', line 5 def subject @subject end |
Instance Method Details
#to_s(serializer: OntologyUnited::Serializer::DEFAULT.new) ⇒ Object
14 15 16 |
# File 'lib/ontology-united/dsl/ontology_import.rb', line 14 def to_s(serializer: OntologyUnited::Serializer::DEFAULT.new) serializer.serialize_import(self) end |