Class: Funky::HTML::Page Private

Inherits:
Object
  • Object
show all
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

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