class References::Ebook

Represents a e-document

Attributes

url[RW]

Public Instance Methods

formatAPA() click to toggle source

Format book reference to APA standard @return [String] format output

# File lib/references/ebook.rb, line 11
def formatAPA
  (prettyOutput(@authors.map { |x| x.to_s }) + "(" + @datee.year.to_s + ") " + @title +
   "\n\t(" + @edition.to_s + ") " +
   "(" + @editionnumber.to_s + ") " +
   @url)
end