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

Constructor Details

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

Instance Method Details

#annual_revenuesObject



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_trafficObject



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_modelObject



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

#ceoObject



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

#cfoObject



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

#cityObject



35
36
37
# File 'lib/wordpress/wxr/directory_listing.rb', line 35

def city
  unserialize('company_details_0_country_of_origin', 'city_name')
end

#contact_emailObject



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

#contact_nameObject



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

#contact_phoneObject



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

#contentObject



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

#cooObject



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

#countryObject



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

def country
  unserialize('company_details_0_country_of_origin', 'country_name')
end

#ctoObject



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_sourceObject



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_nameObject



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

#founderObject



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_coverageObject



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_segmentObject



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

#stateObject



31
32
33
# File 'lib/wordpress/wxr/directory_listing.rb', line 31

def state
  unserialize('company_details_0_country_of_origin', 'state_name')
end

#technology_platformObject



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

#websiteObject



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_establishedObject



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