Class: UClassifyCreateID

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

Instance Method Summary collapse

Constructor Details

#initialize(createid) ⇒ UClassifyCreateID

Returns a new instance of UClassifyCreateID.



4
5
6
# File 'lib/uclassify_create_id.rb', line 4

def initialize (createid)
  @create_id = createid
end

Instance Method Details

#to_xml_node(xml_document) ⇒ Object



8
9
10
11
12
# File 'lib/uclassify_create_id.rb', line 8

def to_xml_node xml_document
  create_id_node = Nokogiri::XML::Node.new('create',xml_document)
  create_id_node['id'] = @create_id.to_s
  create_id_node
end