Method: Yt::Models::URL#initialize

Defined in:
lib/yt/models/url.rb

#initialize(text) ⇒ URL

Returns a new instance of URL.

Parameters:

  • text (String)

    the name or URL of a YouTube resource (in any form).



15
16
17
# File 'lib/yt/models/url.rb', line 15

def initialize(text)
  @text = text.to_s.strip
end