Method: LongURL::Service#query_supported_service_only
- Defined in:
- lib/longurl/service.rb
#query_supported_service_only(url) ⇒ Object
25 26 27 28 29 |
# File 'lib/longurl/service.rb', line 25 def query_supported_service_only(url) check url raise LongURL::UnsupportedService unless service_supported?(url) (@@cache && cached_query(url)) || query(url) end |