Class: DynamicLinks::ShorteningStrategies::BaseStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/dynamic_links/shortening_strategies/base_strategy.rb

Constant Summary collapse

MIN_LENGTH =
5
BASE62_CHARS =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".freeze

Instance Method Summary collapse

Instance Method Details

#shorten(url) ⇒ Object

Raises:

  • (NotImplementedError)


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