Class: UClassifyClass

Inherits:
Object
  • Object
show all
Defined in:
lib/uclassify_class.rb

Instance Method Summary collapse

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