Class: MultiShorten::UrlShortener
- Inherits:
-
Object
- Object
- MultiShorten::UrlShortener
- Includes:
- HTTParty
- Defined in:
- lib/multi_shorten/url_shorteners.rb
Overview
Base class from which all other classes are derived
Class Method Summary collapse
-
.shorten(url) ⇒ Hash
Returns shortened version of the url for the corresponding.
Instance Method Summary collapse
-
#fail ⇒ Object
The hash that is returned when there is a failure.
Class Method Details
.shorten(url) ⇒ Hash
Returns shortened version of the url for the corresponding. This is the abstract class
16 17 |
# File 'lib/multi_shorten/url_shorteners.rb', line 16 def self.shorten url end |
Instance Method Details
#fail ⇒ Object
The hash that is returned when there is a failure
20 21 22 |
# File 'lib/multi_shorten/url_shorteners.rb', line 20 def fail { :status => :fail } end |