class Articulo

Public Class Methods

new(title,medio,nmedio,date,authors) click to toggle source
Calls superclass method G03ref::new
# File lib/lpp_Grupo3/reference.rb, line 79
def initialize(title,medio,nmedio,date,authors)
        super(authors,title,date)
        
@medio = medio
@nmedio = nmedio

return self
end

Public Instance Methods

get_medio() click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 87
def get_medio
    @medio
end
get_nmedio() click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 90
def get_nmedio
    @nmedio
end
to_s() click to toggle source
# File lib/lpp_Grupo3/reference.rb, line 94
def to_s
        text=""
    for i in (0..@authors.size-2)
        text << "#{authors[i]} , " 
    end
    text << "#{authors[authors.size-1]}."
    text << "\n#{@title}."
    if @nmedio.size==1
        text << "\n(#{@serie[0]})."
    end
     text << "\n#{@editorial}; #{@edicion} Edicion (#{@date})."
    for i in (0..@isbn.size-1)
        text << "\nISBN #{@isbn[i].length}: #{@isbn[i]}."
    end
    text
end