class Bitly4R::SimpleClient

Constructs a new ‘simple’ client.

Just like a standard Client, except that several methods are overridden to provide the ‘likely’ value, vs. a Response.

Public Instance Methods

expand(*args) click to toggle source

Same as Client.expand, except that the long URL is returned (vs. a Response)

Calls superclass method Bitly4R::Client#expand
    # File lib/bitly4r/client.rb
179 def expand(*args)
180         #    just the default value, not the Response
181         (super *args).to_s
182 end
shorten(*args) click to toggle source

Same as Client.shorten, except that the shortened URL is returned (vs. a Response)

Calls superclass method Bitly4R::Client#shorten
    # File lib/bitly4r/client.rb
174 def shorten(*args)
175         (super *args).to_s
176 end