class Mozart::Symphony
Attributes
description[RW]
name[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/mozart/symphony.rb, line 13 def self.all @@all end
find(number)
click to toggle source
# File lib/mozart/symphony.rb, line 23 def self.find(number) self.all[number - 1] end
new(name=nil, url=nil)
click to toggle source
# File lib/mozart/symphony.rb, line 7 def initialize(name=nil, url=nil) @name = name @url = url @@all << self end
scraper()
click to toggle source
# File lib/mozart/symphony.rb, line 19 def self.scraper @@scraper end
Public Instance Methods
name_with_number()
click to toggle source
# File lib/mozart/symphony.rb, line 27 def name_with_number @@scraper.scrape_symphony_name_with_number(@url) end