Class: UClassifyUnTrainClass
- Inherits:
-
Object
- Object
- UClassifyUnTrainClass
- Defined in:
- lib/uclassify_untraining_class.rb
Instance Method Summary collapse
-
#initialize(train_id, class_name, text_id) ⇒ UClassifyUnTrainClass
constructor
A new instance of UClassifyUnTrainClass.
- #to_xml_node(xml_document) ⇒ Object
Constructor Details
#initialize(train_id, class_name, text_id) ⇒ UClassifyUnTrainClass
Returns a new instance of UClassifyUnTrainClass.
2 3 4 5 6 |
# File 'lib/uclassify_untraining_class.rb', line 2 def initialize(train_id,class_name,text_id) @train_id = train_id @class_name = class_name @text_id = text_id end |
Instance Method Details
#to_xml_node(xml_document) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/uclassify_untraining_class.rb', line 8 def to_xml_node xml_document class_node = Nokogiri::XML::Node.new('untrain',xml_document) class_node['id']=@train_id class_node['className']=@class_name class_node['textId']=@text_id class_node end |