Class: T2Flow::SemanticAnnotation

Inherits:
Object
  • Object
show all
Defined in:
lib/t2flow/model/semantic_annotation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



8
9
10
# File 'lib/t2flow/model/semantic_annotation.rb', line 8

def content
  @content
end

#subjectObject (readonly)

Returns the value of attribute subject.



8
9
10
# File 'lib/t2flow/model/semantic_annotation.rb', line 8

def subject
  @subject
end

#typeObject (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_sObject



16
17
18
# File 'lib/t2flow/model/semantic_annotation.rb', line 16

def to_s
  @content
end