Class: Google::Apis::AndroidmanagementV1::AppVersion

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

Overview

This represents a single version of the app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppVersion

Returns a new instance of AppVersion.



188
189
190
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 188

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

Instance Attribute Details

#productionBoolean Also known as: production?

True if this version is a production track. Corresponds to the JSON property production

Returns:

  • (Boolean)


167
168
169
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 167

def production
  @production
end

#track_idsArray<String>

Track ids that the app version is published in. This doesn't include the production track (see production instead). Corresponds to the JSON property trackIds

Returns:

  • (Array<String>)


174
175
176
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 174

def track_ids
  @track_ids
end

#version_codeFixnum

Unique increasing identifier for the app version. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)


179
180
181
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 179

def version_code
  @version_code
end

#version_stringString

The string used in the Play store by the app developer to identify the version. The string is not necessarily unique or localized (for example, the string could be "1.4"). Corresponds to the JSON property versionString

Returns:

  • (String)


186
187
188
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 186

def version_string
  @version_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



193
194
195
196
197
198
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 193

def update!(**args)
  @production = args[:production] if args.key?(:production)
  @track_ids = args[:track_ids] if args.key?(:track_ids)
  @version_code = args[:version_code] if args.key?(:version_code)
  @version_string = args[:version_string] if args.key?(:version_string)
end