class Wordpress::WXR
Constants
- VERSION
Attributes
document[R]
Public Class Methods
new(document)
click to toggle source
# File lib/wordpress/wxr.rb, line 22 def initialize(document) @document = document freeze end
parse(path_to_xml)
click to toggle source
# File lib/wordpress/wxr.rb, line 14 def self.parse(path_to_xml) file = File.open(path_to_xml) new(::Nokogiri::XML(file.read.delete("\u0004"))) end
Public Instance Methods
attachments()
click to toggle source
# File lib/wordpress/wxr.rb, line 27 def attachments Attachments.new(document, self) end
categories()
click to toggle source
# File lib/wordpress/wxr.rb, line 35 def categories Categories.new(document, self) end
directory_listings()
click to toggle source
# File lib/wordpress/wxr.rb, line 51 def directory_listings DirectoryListings.new(document, self) end
pages()
click to toggle source
# File lib/wordpress/wxr.rb, line 39 def pages Pages.new(document, self) end
posts()
click to toggle source
# File lib/wordpress/wxr.rb, line 43 def posts Posts.new(document, self) end