Class: Google::Apis::TestingV1::Distribution

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

Overview

Data about the relative number of devices running a given configuration of the Android platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Distribution

Returns a new instance of Distribution.



1110
1111
1112
# File 'lib/google/apis/testing_v1/classes.rb', line 1110

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

Instance Attribute Details

#market_shareFloat

Output only. The estimated fraction (0-1) of the total market with this configuration. Corresponds to the JSON property marketShare

Returns:

  • (Float)


1103
1104
1105
# File 'lib/google/apis/testing_v1/classes.rb', line 1103

def market_share
  @market_share
end

#measurement_timeString

Output only. The time this distribution was measured. Corresponds to the JSON property measurementTime

Returns:

  • (String)


1108
1109
1110
# File 'lib/google/apis/testing_v1/classes.rb', line 1108

def measurement_time
  @measurement_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1115
1116
1117
1118
# File 'lib/google/apis/testing_v1/classes.rb', line 1115

def update!(**args)
  @market_share = args[:market_share] if args.key?(:market_share)
  @measurement_time = args[:measurement_time] if args.key?(:measurement_time)
end