Class: VideoParser::TuDou
- Defined in:
- lib/video_parser/tudou.rb
Overview
support path begin with “/playlist” or “/programs” format
Constant Summary collapse
- VideoHost =
"www.tudou.com"
Instance Attribute Summary collapse
-
#is_playlist ⇒ Object
readonly
Returns the value of attribute is_playlist.
-
#is_programs ⇒ Object
readonly
Returns the value of attribute is_programs.
Attributes inherited from VideoSite
Class Method Summary collapse
Methods inherited from VideoSite
Methods included from GateWay
Constructor Details
This class inherits a constructor from VideoParser::VideoSite
Instance Attribute Details
#is_playlist ⇒ Object (readonly)
Returns the value of attribute is_playlist.
8 9 10 |
# File 'lib/video_parser/tudou.rb', line 8 def is_playlist @is_playlist end |
#is_programs ⇒ Object (readonly)
Returns the value of attribute is_programs.
8 9 10 |
# File 'lib/video_parser/tudou.rb', line 8 def is_programs @is_programs end |
Class Method Details
.embed_html(video_src) ⇒ Object
10 11 12 13 14 |
# File 'lib/video_parser/tudou.rb', line 10 def self.(video_src) <<-EMBED <embed src = '#{video_src}' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' wmode='opaque' width='480' height='400'></embed> EMBED end |