Class: HockeyApp::AndroidVersionUrls
- Inherits:
-
Object
- Object
- HockeyApp::AndroidVersionUrls
- Defined in:
- lib/hockeyapp/services/android_urls.rb
Instance Method Summary collapse
- #direct_download_url ⇒ Object
-
#initialize(version) ⇒ AndroidVersionUrls
constructor
A new instance of AndroidVersionUrls.
- #install_url ⇒ Object
Constructor Details
#initialize(version) ⇒ AndroidVersionUrls
Returns a new instance of AndroidVersionUrls.
18 19 20 |
# File 'lib/hockeyapp/services/android_urls.rb', line 18 def initialize version @version=version end |
Instance Method Details
#direct_download_url ⇒ Object
22 23 24 |
# File 'lib/hockeyapp/services/android_urls.rb', line 22 def direct_download_url "https://rink.hockeyapp.net/api/2/apps/#{@version.app.public_identifier}/app_versions/#{@version.id.to_s}?format=apk" end |
#install_url ⇒ Object
26 27 28 |
# File 'lib/hockeyapp/services/android_urls.rb', line 26 def install_url direct_download_url end |