Module: ACTV::Authorable
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
4 5 6 |
# File 'lib/actv/authorable.rb', line 4 def @author ||= || end |
#author_name_from_by_line ⇒ Object
12 13 14 15 |
# File 'lib/actv/authorable.rb', line 12 def = /by (.*)/i.match by_line [1].strip if .present? end |
#by_line ⇒ Object
8 9 10 |
# File 'lib/actv/authorable.rb', line 8 def by_line @by_line ||= description_by_type 'articleByLine' end |