Class: Supply::GeneratedUniversalApk

Inherits:
Object
  • Object
show all
Defined in:
supply/lib/supply/generated_universal_apk.rb

Overview

A model representing the returned values from a call to Client#list_generated_universal_apks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package_name, version_code, certificate_sha256_hash, download_id) ⇒ GeneratedUniversalApk

Initializes the Generated Universal APK model



10
11
12
13
14
15
# File 'supply/lib/supply/generated_universal_apk.rb', line 10

def initialize(package_name, version_code, certificate_sha256_hash, download_id)
  self.package_name = package_name
  self.version_code = version_code
  self.certificate_sha256_hash = certificate_sha256_hash
  self.download_id = download_id
end

Instance Attribute Details

#certificate_sha256_hashObject

Returns the value of attribute certificate_sha256_hash.



6
7
8
# File 'supply/lib/supply/generated_universal_apk.rb', line 6

def certificate_sha256_hash
  @certificate_sha256_hash
end

#download_idObject

Returns the value of attribute download_id.



7
8
9
# File 'supply/lib/supply/generated_universal_apk.rb', line 7

def download_id
  @download_id
end

#package_nameObject

Returns the value of attribute package_name.



4
5
6
# File 'supply/lib/supply/generated_universal_apk.rb', line 4

def package_name
  @package_name
end

#version_codeObject

Returns the value of attribute version_code.



5
6
7
# File 'supply/lib/supply/generated_universal_apk.rb', line 5

def version_code
  @version_code
end

Instance Method Details

#==(other) ⇒ Object



17
18
19
20
21
22
# File 'supply/lib/supply/generated_universal_apk.rb', line 17

def ==(other)
  self.package_name == other.package_name \
    && self.version_code == other.version_code \
    && self.certificate_sha256_hash == other.certificate_sha256_hash \
    && self.download_id == other.download_id
end