Class: UrlTokenizer::Wowza
- Defined in:
- lib/url_tokenizer/wowza.rb
Instance Method Summary collapse
Methods inherited from Provider
Constructor Details
This class inherits a constructor from UrlTokenizer::Provider
Instance Method Details
#call(input_url, **options) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/url_tokenizer/wowza.rb', line 8 def call(input_url, **) = .merge ignore_in_path = .delete :ignore_in_path uri = URI.parse input_url folder_path = get_path uri, ignore_in_path return if folder_path.empty? || folder_path == '/' uri.query = encode_query folder_path, () uri.to_s end |