Class: Wordpress::WXR::DirectoryListing
- Inherits:
-
Item
show all
- Defined in:
- lib/wordpress/wxr/directory_listing.rb
Instance Method Summary
collapse
Methods inherited from Item
#==, #attachments, #categories, #comment_status, #creator, #draft?, #excerpt, #guid, #id, #link, #meta, #name, #pages, #parent_id, #ping_status, #posted_at, #published?, #status, #sticky?, #tags, #title
Methods inherited from Element
#initialize
Instance Method Details
#annual_revenues ⇒ Object
67
68
69
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 67
def annual_revenues
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_annual_revenues']").at_xpath('wp:meta_value').try(:text)
end
|
#average_monthly_traffic ⇒ Object
83
84
85
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 83
def average_monthly_traffic
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_average_monthly_traffic']").at_xpath('wp:meta_value').try(:text)
end
|
#business_model ⇒ Object
75
76
77
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 75
def business_model
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_portal_business_model']").at_xpath('wp:meta_value').try(:text)
end
|
#ceo ⇒ Object
51
52
53
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 51
def ceo
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_ceo']").at_xpath('wp:meta_value').try(:text)
end
|
#cfo ⇒ Object
63
64
65
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 63
def cfo
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_cfo']").at_xpath('wp:meta_value').try(:text)
end
|
#city ⇒ Object
35
36
37
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 35
def city
unserialize('company_details_0_country_of_origin', 'city_name')
end
|
19
20
21
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 19
def contact_email
node.xpath("wp:postmeta[wp:meta_key = 'contact_details_0_email']").at_xpath('wp:meta_value').try(:text)
end
|
15
16
17
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 15
def contact_name
node.xpath("wp:postmeta[wp:meta_key = 'contact_details_0_contact_name']").at_xpath('wp:meta_value').try(:text)
end
|
23
24
25
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 23
def contact_phone
node.xpath("wp:postmeta[wp:meta_key = 'contact_details_0_phone']").at_xpath('wp:meta_value').try(:text)
end
|
#content ⇒ Object
7
8
9
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 7
def content
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_company_bio']").at_xpath('wp:meta_value').try(:text)
end
|
#coo ⇒ Object
55
56
57
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 55
def coo
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_coo']").at_xpath('wp:meta_value').try(:text)
end
|
#country ⇒ Object
27
28
29
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 27
def country
unserialize('company_details_0_country_of_origin', 'country_name')
end
|
#cto ⇒ Object
59
60
61
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 59
def cto
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_cto']").at_xpath('wp:meta_value').try(:text)
end
|
#data_source ⇒ Object
87
88
89
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 87
def data_source
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_data_source']").at_xpath('wp:meta_value').try(:text)
end
|
#directory_name ⇒ Object
11
12
13
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 11
def directory_name
node.xpath("wp:postmeta[wp:meta_key = 'directory_type']").at_xpath('wp:meta_value').try(:text)
end
|
#founder ⇒ Object
47
48
49
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 47
def founder
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_founder']").at_xpath('wp:meta_value').try(:text)
end
|
#market_coverage ⇒ Object
79
80
81
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 79
def market_coverage
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_portal_market_coverage']").at_xpath('wp:meta_value').try(:text)
end
|
#market_segment ⇒ Object
71
72
73
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 71
def market_segment
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_portal_market_segment']").at_xpath('wp:meta_value').try(:text)
end
|
#state ⇒ Object
31
32
33
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 31
def state
unserialize('company_details_0_country_of_origin', 'state_name')
end
|
91
92
93
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 91
def technology_platform
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_technology_platform']").at_xpath('wp:meta_value').try(:text)
end
|
#website ⇒ Object
39
40
41
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 39
def website
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_company_website']").at_xpath('wp:meta_value').try(:text)
end
|
#years_established ⇒ Object
43
44
45
|
# File 'lib/wordpress/wxr/directory_listing.rb', line 43
def years_established
node.xpath("wp:postmeta[wp:meta_key = 'company_details_0_number_of_years_established']").at_xpath('wp:meta_value').try(:text)
end
|