Class: BillboardChart

Inherits:
Object
  • Object
show all
Defined in:
lib/billboard_chart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBillboardChart

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

#artistsObject

Returns the value of attribute artists.



4
5
6
# File 'lib/billboard_chart.rb', line 4

def artists
  @artists
end

#chartObject

Returns the value of attribute chart.



4
5
6
# File 'lib/billboard_chart.rb', line 4

def chart
  @chart
end

#singlesObject

Returns the value of attribute singles.



4
5
6
# File 'lib/billboard_chart.rb', line 4

def singles
  @singles
end

#top_tenObject

Returns the value of attribute top_ten.



4
5
6
# File 'lib/billboard_chart.rb', line 4

def top_ten
  @top_ten
end