class Epuber::Book::NormalContributor
Attributes
@return [String] first name of contributor
@return [String] last name of contributor
Public Class Methods
Source
# File lib/epuber/book/contributor.rb, line 73 def initialize(first_name, last_name, role) super(nil, nil, role) @first_name = first_name @last_name = last_name end
@param [String] first_name
first name of contributor @param [String] last_name
last name of contributor @param [String] role contributor role
Calls superclass method
Epuber::Book::Contributor::new
Public Instance Methods
Source
# File lib/epuber/book/contributor.rb, line 88 def file_as "#{@last_name.mb_chars.upcase}, #{@first_name}" end
@return [String]
Source
# File lib/epuber/book/contributor.rb, line 82 def pretty_name "#{@first_name} #{@last_name}" end
@return [String]