class Quote

Attributes

author[RW]
author_name[RW]
content[RW]
likes[RW]
scripture_it_belongs_to[RW]

Public Class Methods

new(cont,likes,book,author_name,author=nil) click to toggle source
# File lib/quote_box/quote.rb, line 7
def initialize(cont,likes,book,author_name,author=nil)
        @content=cont
        @likes=likes
        @author_name=author_name
        @scripture_it_belongs_to=book
        @author=author

end

Public Instance Methods

display() click to toggle source
# File lib/quote_box/quote.rb, line 16
def display
        puts "\n#{self.content}"
        puts "\n-#{self.author_name}#{self.scripture_it_belongs_to }"
        puts "\nIt has #{self.likes}"
end