Class: Opener::Kaf::Visualizer::Opinion
- Defined in:
- lib/opener/s3_outlet/visualizer.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#oid ⇒ Object
readonly
Returns the value of attribute oid.
Attributes inherited from KAFNode
#content, #references, #tag, #targets
Instance Method Summary collapse
Methods inherited from KAFNode
#has_target?, #initialize, #set_content, #set_instance_variables, #set_targets, #target_ids
Constructor Details
This class inherits a constructor from Opener::Kaf::Visualizer::KAFNode
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
172 173 174 |
# File 'lib/opener/s3_outlet/visualizer.rb', line 172 def expression @expression end |
#oid ⇒ Object (readonly)
Returns the value of attribute oid.
172 173 174 |
# File 'lib/opener/s3_outlet/visualizer.rb', line 172 def oid @oid end |
Instance Method Details
#id ⇒ Object
174 175 176 |
# File 'lib/opener/s3_outlet/visualizer.rb', line 174 def id oid end |
#process_subnodes ⇒ Object
178 179 180 |
# File 'lib/opener/s3_outlet/visualizer.rb', line 178 def process_subnodes @expression = tag.xpath("opinion_expression").first["polarity"].to_sym end |
#to_s ⇒ Object
182 183 184 |
# File 'lib/opener/s3_outlet/visualizer.rb', line 182 def to_s "#{expression}: #{targets.map(&:to_s).join(", ")}" end |