Class: Perron::Site::Builder::Feeds::Author::Author
- Inherits:
-
Object
- Object
- Perron::Site::Builder::Feeds::Author::Author
- Defined in:
- lib/perron/site/builder/feeds/author.rb
Instance Method Summary collapse
- #avatar ⇒ Object
- #email ⇒ Object
-
#initialize(author) ⇒ Author
constructor
A new instance of Author.
- #name ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(author) ⇒ Author
Returns a new instance of Author.
18 19 20 |
# File 'lib/perron/site/builder/feeds/author.rb', line 18 def initialize() @author = end |
Instance Method Details
#avatar ⇒ Object
34 35 36 |
# File 'lib/perron/site/builder/feeds/author.rb', line 34 def avatar @author.respond_to?(:metadata) ? @author..avatar : @author[:avatar] end |
#email ⇒ Object
26 27 28 |
# File 'lib/perron/site/builder/feeds/author.rb', line 26 def email @author.respond_to?(:metadata) ? @author..email : @author[:email] end |
#name ⇒ Object
22 23 24 |
# File 'lib/perron/site/builder/feeds/author.rb', line 22 def name @author.respond_to?(:metadata) ? @author..name : @author[:name] end |
#url ⇒ Object
30 31 32 |
# File 'lib/perron/site/builder/feeds/author.rb', line 30 def url @author.respond_to?(:metadata) ? @author..url : @author[:url] end |