Class: T2Flow::SemanticAnnotation
- Inherits:
-
Object
- Object
- T2Flow::SemanticAnnotation
- Defined in:
- lib/t2flow/model/semantic_annotation.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(subject, type, content) ⇒ SemanticAnnotation
constructor
A new instance of SemanticAnnotation.
- #to_s ⇒ Object
Constructor Details
#initialize(subject, type, content) ⇒ SemanticAnnotation
Returns a new instance of SemanticAnnotation.
10 11 12 13 14 |
# File 'lib/t2flow/model/semantic_annotation.rb', line 10 def initialize(subject, type, content) @subject = subject @type = type @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
8 9 10 |
# File 'lib/t2flow/model/semantic_annotation.rb', line 8 def content @content end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
8 9 10 |
# File 'lib/t2flow/model/semantic_annotation.rb', line 8 def subject @subject end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/t2flow/model/semantic_annotation.rb', line 8 def type @type end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/t2flow/model/semantic_annotation.rb', line 16 def to_s @content end |