class Epuber::Book::NormalContributor
Attributes
first_name[RW]
@return [String] first name of contributor
last_name[RW]
@return [String] last name of contributor
Public Class Methods
new(first_name, last_name, role)
click to toggle source
@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
# 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
Public Instance Methods
file_as()
click to toggle source
@return [String]
# File lib/epuber/book/contributor.rb, line 88 def file_as "#{@last_name.mb_chars.upcase}, #{@first_name}" end
pretty_name()
click to toggle source
@return [String]
# File lib/epuber/book/contributor.rb, line 82 def pretty_name "#{@first_name} #{@last_name}" end