Module: Feedbook::LiquidExtensions::Filters::GooglShortenerFilter

Defined in:
lib/feedbook/liquid_extensions/filters/googl_shortener_filter.rb

Instance Method Summary collapse

Instance Method Details

#googl(input) ⇒ String

Shorten links with goo.gl

Parameters:

Returns:

  • (String)

    url in shorten form



13
14
15
16
# File 'lib/feedbook/liquid_extensions/filters/googl_shortener_filter.rb', line 13

def googl(input)
  url = Googl.shorten(input)
  url.short_url
end