Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated the v3/url library to include the qrcode url #21

Merged
merged 1 commit into from

2 participants

@beingben

Let me know if it looks okay to you. I didn't write any test for it as there is no external interaction.

@philnash philnash merged commit bf4a175 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2012
  1. Added the qrcode_url

    Ben Hamilton authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/bitly/v3/url.rb
View
8 lib/bitly/v3/url.rb
@@ -114,6 +114,12 @@ def clicks_by_day(opts={})
@clicks_by_day
end
+ # QR code is automatically created and can be incorporated
+ # into mobile applications.
+ def qrcode_url
+ short_url + ".qrcode" unless short_url.blank?
+ end
+
private
def update_clicks_data
@@ -140,4 +146,4 @@ def update_countries
end
end
end
-end
+end
Something went wrong with that request. Please try again.