Module: Mixcloud::PopularNewHot
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/mixcloud/popular_new_hot.rb', line 3 def self.included(base) base.class_eval{include UrlHelper} unless base.include?(UrlHelper) end |
Instance Method Details
#hot_url ⇒ Object
15 16 17 |
# File 'lib/mixcloud/popular_new_hot.rb', line 15 def hot_url turn_www_to_api(@public_url).concat 'hot/' end |
#new_url ⇒ Object
11 12 13 |
# File 'lib/mixcloud/popular_new_hot.rb', line 11 def new_url turn_www_to_api(@public_url).concat 'new/' end |
#popular_url ⇒ Object
7 8 9 |
# File 'lib/mixcloud/popular_new_hot.rb', line 7 def popular_url turn_www_to_api(@public_url).concat 'popular/' end |