Class: Wordpress::WXR::Author
Instance Method Summary
collapse
Methods inherited from Element
#initialize
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 &&
login == other.login
end
|
#display_name ⇒ Object
19
20
21
|
# File 'lib/wordpress/wxr/author.rb', line 19
def display_name
node.xpath('wp:author_display_name').text
end
|
#email ⇒ Object
15
16
17
|
# File 'lib/wordpress/wxr/author.rb', line 15
def email
Mail::Address.new(node.xpath('wp:author_email').text)
end
|
#first_name ⇒ Object
23
24
25
|
# File 'lib/wordpress/wxr/author.rb', line 23
def first_name
node.xpath('wp:author_first_name').text
end
|
#id ⇒ Object
7
8
9
|
# File 'lib/wordpress/wxr/author.rb', line 7
def id
Integer(node.xpath('wp:author_id').text)
end
|
#last_name ⇒ Object
27
28
29
|
# File 'lib/wordpress/wxr/author.rb', line 27
def last_name
node.xpath('wp:author_last_name').text
end
|
#login ⇒ Object
11
12
13
|
# File 'lib/wordpress/wxr/author.rb', line 11
def login
node.xpath('wp:author_login').text
end
|