Class: HockeyApp::AndroidVersionUrls

Inherits:
Object
  • Object
show all
Defined in:
lib/hockeyapp/services/android_urls.rb

Instance Method Summary collapse

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_urlObject



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_urlObject



26
27
28
# File 'lib/hockeyapp/services/android_urls.rb', line 26

def install_url
  direct_download_url
end