class Wordpress::WXR::Comment
Public Instance Methods
==(other)
click to toggle source
# File lib/wordpress/wxr/comment.rb, line 32 def ==(other) self.class == other.class && email == other.email && date == other.date && content == other.content end
Also aliased as: eql?
approved?()
click to toggle source
# File lib/wordpress/wxr/comment.rb, line 28 def approved? node.xpath('wp:comment_approved').text.to_i == 1 end
content()
click to toggle source
# File lib/wordpress/wxr/comment.rb, line 24 def content node.xpath('wp:comment_content').text end
date()
click to toggle source
# File lib/wordpress/wxr/comment.rb, line 20 def date DateTime.parse(node.xpath('wp:comment_date').text) end
email()
click to toggle source
# File lib/wordpress/wxr/comment.rb, line 12 def email Mail::Address.new(node.xpath('wp:comment_author_email').text) end
url()
click to toggle source
# File lib/wordpress/wxr/comment.rb, line 16 def url URI(node.xpath('wp:comment_author_url').text) end