class HippoXmlParser::Article
Public Instance Methods
body()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 3 def body Body.new(find_node('contentauthoringwebsite:body').doc).to_s end
created_at()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 11 def created_at Time.parse(fetch('hippostdpubwf:creationDate')) end
created_by()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 15 def created_by fetch('hippostdpubwf:createdBy') end
id()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 43 def id doc['sv:name'] end
inspect()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 51 def inspect "#<Article id=#{id} state=#{state} length=#{body.length}>" end
locale()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 47 def locale fetch('hippotranslation:locale') end
meta_description()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 7 def meta_description fetch('contentauthoringwebsite:meta_description') end
preview()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 39 def preview fetch('contentauthoringwebsite:preview') end
state()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 27 def state fetch('hippostd:state') end
title()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 31 def title fetch('contentauthoringwebsite:title') end
title_tag()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 35 def title_tag fetch('contentauthoringwebsite:title_tag') end
updated_at()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 19 def updated_at Time.parse(fetch('hippostdpubwf:lastModificationDate')) end
updated_by()
click to toggle source
# File lib/hippo_xml_parser/article.rb, line 23 def updated_by fetch('hippostdpubwf:lastModifiedBy') end