Class: Delicious::Collector
- Inherits:
-
Object
- Object
- Delicious::Collector
- Defined in:
- lib/delicious.rb
Instance Method Summary collapse
- #fresh ⇒ Object
- #hot_list ⇒ Object
- #popular(tag = '') ⇒ Object
- #recent(min = 2) ⇒ Object
- #search(term) ⇒ Object
Instance Method Details
#fresh ⇒ Object
33 34 35 36 |
# File 'lib/delicious.rb', line 33 def fresh @list_type = FRESH get_links BASE_URL, FRESH_QUERY end |
#hot_list ⇒ Object
38 39 40 41 |
# File 'lib/delicious.rb', line 38 def hot_list @list_type = FRESH get_links HOT_LIST_URL, FRESH_QUERY end |
#popular(tag = '') ⇒ Object
43 44 45 46 |
# File 'lib/delicious.rb', line 43 def popular(tag='') @list_type = POPULAR get_links POPULAR_URL+'/'+tag, POPULAR_QUERY end |
#recent(min = 2) ⇒ Object
48 49 50 51 |
# File 'lib/delicious.rb', line 48 def recent(min=2) @list_type = RECENT get_links RECENT_URL+'?min='+min.to_s, POPULAR_QUERY end |
#search(term) ⇒ Object
53 54 55 56 |
# File 'lib/delicious.rb', line 53 def search(term) @list_type = SEARCH get_links SEARCH_URL+term+"&lc=1", SEARCH_QUERY end |