Module: Mixcloud::PopularNewHot

Included in:
Artist, Tag, Track
Defined in:
lib/mixcloud/popular_new_hot.rb

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_urlObject



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_urlObject



11
12
13
# File 'lib/mixcloud/popular_new_hot.rb', line 11

def new_url
  turn_www_to_api(@public_url).concat 'new/'
end


7
8
9
# File 'lib/mixcloud/popular_new_hot.rb', line 7

def popular_url
  turn_www_to_api(@public_url).concat 'popular/'
end