Class: RichUrls::Parsers::EmbedParser::YoutubeShort
- Inherits:
-
Base
- Object
- Base
- RichUrls::Parsers::EmbedParser::YoutubeShort
show all
- Defined in:
- lib/parsers/embed_parsers/youtube_short.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#match? ⇒ Boolean
5
6
7
|
# File 'lib/parsers/embed_parsers/youtube_short.rb', line 5
def match?
@uri.host == 'youtu.be'
end
|
#parse ⇒ Object
9
10
11
12
13
14
|
# File 'lib/parsers/embed_parsers/youtube_short.rb', line 9
def parse
path = @uri.path
path[0] = ''
Youtube::IFRAME % path
end
|