Class: BillboardChart
- Inherits:
-
Object
- Object
- BillboardChart
- Defined in:
- lib/billboard_chart.rb
Instance Attribute Summary collapse
-
#artists ⇒ Object
Returns the value of attribute artists.
-
#chart ⇒ Object
Returns the value of attribute chart.
-
#singles ⇒ Object
Returns the value of attribute singles.
-
#top_ten ⇒ Object
Returns the value of attribute top_ten.
Instance Method Summary collapse
-
#initialize ⇒ BillboardChart
constructor
A new instance of BillboardChart.
Constructor Details
#initialize ⇒ BillboardChart
Returns a new instance of BillboardChart.
6 7 8 |
# File 'lib/billboard_chart.rb', line 6 def initialize BillboardChartScraper.new("http://www.billboard.com/charts/hot-100") end |
Instance Attribute Details
#artists ⇒ Object
Returns the value of attribute artists.
4 5 6 |
# File 'lib/billboard_chart.rb', line 4 def artists @artists end |
#chart ⇒ Object
Returns the value of attribute chart.
4 5 6 |
# File 'lib/billboard_chart.rb', line 4 def chart @chart end |
#singles ⇒ Object
Returns the value of attribute singles.
4 5 6 |
# File 'lib/billboard_chart.rb', line 4 def singles @singles end |
#top_ten ⇒ Object
Returns the value of attribute top_ten.
4 5 6 |
# File 'lib/billboard_chart.rb', line 4 def top_ten @top_ten end |