Class: Google::Apis::AndroidenterpriseV1::AppVersion

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

Overview

This represents a single version of the app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AppVersion

Returns a new instance of AppVersion



342
343
344
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 342

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

Instance Attribute Details

#trackString

The track that this app was published in. For example if track is "alpha", this is an alpha version of the app. Corresponds to the JSON property track

Returns:

  • (String)


328
329
330
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 328

def track
  @track
end

#version_codeFixnum

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

Returns:

  • (Fixnum)


333
334
335
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 333

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)


340
341
342
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 340

def version_string
  @version_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



347
348
349
350
351
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 347

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