Class: UClassifyClass
- Inherits:
-
Object
- Object
- UClassifyClass
- Defined in:
- lib/uclassify_class.rb
Instance Method Summary collapse
-
#initialize(class_name) ⇒ UClassifyClass
constructor
A new instance of UClassifyClass.
- #to_xml_node(xml_document) ⇒ Object
Constructor Details
#initialize(class_name) ⇒ UClassifyClass
Returns a new instance of UClassifyClass.
2 3 4 |
# File 'lib/uclassify_class.rb', line 2 def initialize(class_name) @class_name=class_name end |
Instance Method Details
#to_xml_node(xml_document) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/uclassify_class.rb', line 6 def to_xml_node xml_document class_node = Nokogiri::XML::Node.new('addClass',xml_document) class_node['id']=(UClassifyUtils.string_to_id @class_name) class_node['className']=@class_name class_node end |