public
Description: DataMapper adapter for google video
Homepage:
Clone URL: git://github.com/mattetti/dm-gvideo-adapter.git
100644 30 lines (18 sloc) 0.625 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
dm-gvideo-adapter
=================
 
# dependencies
Gvideo: http://github.com/mattetti/gvideo
 
install the dependency:
  
  $ sudo gem install mattetti-gvideo
  
install this adapter
 
  $ sudo gem install mattetti-dm-gvideo-adapter
  
 
Usage:
 
# URI:
googlevideo://A005148908335059515423 # google video user id
 
(or you can set the user_id in your database.yml)
 
 
Video.all # returns all the user's videos
Video.get("-2838281997424715962")
Video.first(:title => "The Illuminati - Secret societies")
Video.all(:title.like => "%Illuminati%")
Video.all(:duration.gte => 360)
Video.all(:duration.gte => 60, :duration.lte => 360)