Class: YaCan::Morphem::Result
- Inherits:
-
Object
- Object
- YaCan::Morphem::Result
- Defined in:
- lib/yacan/morphem.rb
Instance Attribute Summary collapse
-
#ma_result ⇒ Object
readonly
Returns the value of attribute ma_result.
-
#uniq_result ⇒ Object
readonly
Returns the value of attribute uniq_result.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(xml) ⇒ Result
Returns a new instance of Result.
26 27 28 29 30 31 |
# File 'lib/yacan/morphem.rb', line 26 def initialize(xml) @xml = xml wrapped = Nokogiri::XML(xml) @ma_result = MaOrUniq.new(wrapped.at('ma_result')) @uniq_result = MaOrUniq.new(wrapped.at('uniq_result')) end |
Instance Attribute Details
#ma_result ⇒ Object (readonly)
Returns the value of attribute ma_result.
32 33 34 |
# File 'lib/yacan/morphem.rb', line 32 def ma_result @ma_result end |
#uniq_result ⇒ Object (readonly)
Returns the value of attribute uniq_result.
32 33 34 |
# File 'lib/yacan/morphem.rb', line 32 def uniq_result @uniq_result end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
32 33 34 |
# File 'lib/yacan/morphem.rb', line 32 def xml @xml end |