Class: Google::Apis::AndroidpublisherV3::ApkBinary

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb

Overview

Represents the binary payload of an APK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApkBinary

Returns a new instance of ApkBinary.



112
113
114
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 112

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#sha1String

A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command. Corresponds to the JSON property sha1

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 104

def sha1
  @sha1
end

#sha256String

A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command. Corresponds to the JSON property sha256

Returns:

  • (String)


110
111
112
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 110

def sha256
  @sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



117
118
119
120
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 117

def update!(**args)
  @sha1 = args[:sha1] if args.key?(:sha1)
  @sha256 = args[:sha256] if args.key?(:sha256)
end