lib/bitly/v3/url.rb in bitly-0.5.0 vs lib/bitly/v3/url.rb in bitly-0.5.1
- old
+ new
@@ -9,10 +9,10 @@
def initialize(client, opts={})
@client = client
if opts
@short_url = opts['url']
@long_url = opts['long_url']
- @user_hash = opts['hash']
+ @user_hash = opts['hash'] || opts['user_hash']
@global_hash = opts['global_hash']
@new_hash = (opts['new_hash'] == 1)
@user_clicks = opts['user_clicks']
@global_clicks = opts['global_clicks']
end
\ No newline at end of file