Class: Google::Apis::AndroidpublisherV3::Sampling

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/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) ⇒ Sampling

Returns a new instance of Sampling.



1481
1482
1483
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1481

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

Instance Attribute Details

#mod_rangesArray<Google::Apis::AndroidpublisherV3::ModRange>

Corresponds to the JSON property modRanges



1458
1459
1460
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1458

def mod_ranges
  @mod_ranges
end

#modulusFixnum

Corresponds to the JSON property modulus

Returns:

  • (Fixnum)


1463
1464
1465
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1463

def modulus
  @modulus
end

#saltFixnum

Corresponds to the JSON property salt

Returns:

  • (Fixnum)


1468
1469
1470
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1468

def salt
  @salt
end

#stratified_samplingsArray<Google::Apis::AndroidpublisherV3::StratifiedSampling>

Corresponds to the JSON property stratifiedSamplings



1473
1474
1475
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1473

def stratified_samplings
  @stratified_samplings
end

#use_android_idBoolean Also known as: use_android_id?

Corresponds to the JSON property useAndroidId

Returns:

  • (Boolean)


1478
1479
1480
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1478

def use_android_id
  @use_android_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1486
1487
1488
1489
1490
1491
1492
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1486

def update!(**args)
  @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges)
  @modulus = args[:modulus] if args.key?(:modulus)
  @salt = args[:salt] if args.key?(:salt)
  @stratified_samplings = args[:stratified_samplings] if args.key?(:stratified_samplings)
  @use_android_id = args[:use_android_id] if args.key?(:use_android_id)
end