Class: Wordpress::WXR::Author

Inherits:
Element
  • Object
show all
Defined in:
lib/wordpress/wxr/author.rb

Instance Method Summary collapse

Methods inherited from Element

#initialize

Constructor Details

This class inherits a constructor from Wordpress::WXR::Element

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



31
32
33
34
35
# File 'lib/wordpress/wxr/author.rb', line 31

def ==(other)
  self.class == other.class &&
    id == other.id &&
     == other.
end

#display_nameObject



19
20
21
# File 'lib/wordpress/wxr/author.rb', line 19

def display_name
  node.xpath('wp:author_display_name').text
end

#emailObject



15
16
17
# File 'lib/wordpress/wxr/author.rb', line 15

def email
  Mail::Address.new(node.xpath('wp:author_email').text)
end

#first_nameObject



23
24
25
# File 'lib/wordpress/wxr/author.rb', line 23

def first_name
  node.xpath('wp:author_first_name').text
end

#idObject



7
8
9
# File 'lib/wordpress/wxr/author.rb', line 7

def id
  Integer(node.xpath('wp:author_id').text)
end

#last_nameObject



27
28
29
# File 'lib/wordpress/wxr/author.rb', line 27

def last_name
  node.xpath('wp:author_last_name').text
end

#loginObject



11
12
13
# File 'lib/wordpress/wxr/author.rb', line 11

def 
  node.xpath('wp:author_login').text
end