Module: Rebrandly

Defined in:
lib/rebrandly_shortner.rb

Class Method Summary collapse

Class Method Details

.shorten(destination, options = {}) ⇒ Object



5
6
7
# File 'lib/rebrandly_shortner.rb', line 5

def shorten(destination, options = {})
  Rebrandly::Client.post('links', options.merge(destination: destination))
end