class Gnomika::Subcategory
A quote subcategory. Has a name and a URL to the quotes page.
Attributes
name[R]
quotes[R]
url[R]
Public Class Methods
new(subcategory_name, subcategory_url)
click to toggle source
@param subcategory_name Subcategory
name @param subcategory_url URL containing the quotes of this subcategory
# File lib/gnomikologikon/category.rb, line 25 def initialize(subcategory_name, subcategory_url) @name = subcategory_name @url = subcategory_url end
Public Instance Methods
==(other)
click to toggle source
# File lib/gnomikologikon/category.rb, line 30 def ==(other) self.name == other.name end