Class: Google::Apis::AndroidpublisherV2::Track

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

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) ⇒ Track

Returns a new instance of Track



1733
1734
1735
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1733

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

Instance Attribute Details

#trackString

Identifier for this track. Corresponds to the JSON property track

Returns:

  • (String)


1719
1720
1721
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1719

def track
  @track
end

#user_fractionFloat

Corresponds to the JSON property userFraction

Returns:

  • (Float)


1724
1725
1726
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1724

def user_fraction
  @user_fraction
end

#version_codesArray<Fixnum>

Version codes to make active on this track. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases. Corresponds to the JSON property versionCodes

Returns:

  • (Array<Fixnum>)


1731
1732
1733
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1731

def version_codes
  @version_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1738
1739
1740
1741
1742
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1738

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