Class: Lbp::Article
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #article_type ⇒ Object
- #article_type_shortId ⇒ Object
-
#file_path ⇒ Object
initionalization handled by Resource Class.
Methods inherited from Resource
create, #description, find, #has_parts, #initialize, #is_part_of, #title, #type, #value, #values
Constructor Details
This class inherits a constructor from Lbp::Resource
Instance Method Details
#article_type ⇒ Object
14 15 16 17 |
# File 'lib/lbp/article.rb', line 14 def article_type type = self.results.dup.filter(:p => RDF::URI("http://scta.info/property/articleType")).first[:o].to_s type.downcase end |
#article_type_shortId ⇒ Object
18 19 20 |
# File 'lib/lbp/article.rb', line 18 def article_type_shortId self.article_type.split("/").last end |
#file_path ⇒ Object
initionalization handled by Resource Class
11 12 13 |
# File 'lib/lbp/article.rb', line 11 def file_path file_path = self.results.dup.filter(:p => RDF::URI("http://scta.info/property/hasXML")).first[:o].to_s end |