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.



1659
1660
1661
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1659

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

Instance Attribute Details

#trackString

Corresponds to the JSON property track

Returns:

  • (String)


1647
1648
1649
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1647

def track
  @track
end

#user_fractionFloat

Corresponds to the JSON property userFraction

Returns:

  • (Float)


1652
1653
1654
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1652

def user_fraction
  @user_fraction
end

#version_codesArray<Fixnum>

Corresponds to the JSON property versionCodes

Returns:

  • (Array<Fixnum>)


1657
1658
1659
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1657

def version_codes
  @version_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1664
1665
1666
1667
1668
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1664

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