Class: Funky::HTML::Page Private
- Inherits:
-
Object
- Object
- Funky::HTML::Page
- Defined in:
- lib/funky/html/page.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #get(video_id:) ⇒ Object private
Instance Method Details
#get(video_id:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 9 10 11 12 |
# File 'lib/funky/html/page.rb', line 5 def get(video_id:) body = response_for(video_id).body if body.include? '<meta name="description"' body else raise ContentNotFound, 'Please double check the ID and try again.' end end |