class Wordpress::WXR::Category
Public Instance Methods
==(other)
click to toggle source
# File lib/wordpress/wxr/category.rb, line 22 def ==(other) self.class == other.class && id == other.id end
Also aliased as: eql?
id()
click to toggle source
# File lib/wordpress/wxr/category.rb, line 6 def id Integer(node.xpath('wp:term_id').text) end
name()
click to toggle source
# File lib/wordpress/wxr/category.rb, line 18 def name node.xpath('wp:cat_name').text end
nicename()
click to toggle source
# File lib/wordpress/wxr/category.rb, line 10 def nicename node.xpath('wp:category_nicename').text end
parent()
click to toggle source
# File lib/wordpress/wxr/category.rb, line 14 def parent wxr.categories.find_by(nicename: node.xpath('wp:category_parent').text) end