Class: Delicious::Collector

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

Instance Method Summary collapse

Instance Method Details

#freshObject



33
34
35
36
# File 'lib/delicious.rb', line 33

def fresh
  @list_type = FRESH
  get_links BASE_URL, FRESH_QUERY
end

#hot_listObject



38
39
40
41
# File 'lib/delicious.rb', line 38

def hot_list
  @list_type = FRESH
  get_links HOT_LIST_URL, FRESH_QUERY
end


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