Class: DynamicLinks::ShorteningStrategies::BaseStrategy
- Inherits:
-
Object
- Object
- DynamicLinks::ShorteningStrategies::BaseStrategy
- Defined in:
- lib/dynamic_links/shortening_strategies/base_strategy.rb
Direct Known Subclasses
CRC32Strategy, MD5Strategy, MockStrategy, NanoIDStrategy, RedisCounterStrategy, SHA256Strategy
Constant Summary collapse
- MIN_LENGTH =
5
- BASE62_CHARS =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".freeze
Instance Method Summary collapse
Instance Method Details
#shorten(url) ⇒ Object
8 9 10 |
# File 'lib/dynamic_links/shortening_strategies/base_strategy.rb', line 8 def shorten(url) raise NotImplementedError, "You must implement the shorten method" end |