Class: Google::Apis::PlaydeveloperreportingV1beta1::GooglePlayDeveloperReportingV1beta1MetricValue

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

Overview

Represents the value of a metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePlayDeveloperReportingV1beta1MetricValue

Returns a new instance of GooglePlayDeveloperReportingV1beta1MetricValue.



938
939
940
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 938

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

Instance Attribute Details

#decimal_valueGoogle::Apis::PlaydeveloperreportingV1beta1::GoogleTypeDecimal

A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. Corresponds to the JSON property decimalValue



926
927
928
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 926

def decimal_value
  @decimal_value
end

#decimal_value_confidence_intervalGoogle::Apis::PlaydeveloperreportingV1beta1::GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval

Represents the confidence interval of a metric. Corresponds to the JSON property decimalValueConfidenceInterval



931
932
933
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 931

def decimal_value_confidence_interval
  @decimal_value_confidence_interval
end

#metricString

Name of the metric. Corresponds to the JSON property metric

Returns:

  • (String)


936
937
938
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 936

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



943
944
945
946
947
# File 'lib/google/apis/playdeveloperreporting_v1beta1/classes.rb', line 943

def update!(**args)
  @decimal_value = args[:decimal_value] if args.key?(:decimal_value)
  @decimal_value_confidence_interval = args[:decimal_value_confidence_interval] if args.key?(:decimal_value_confidence_interval)
  @metric = args[:metric] if args.key?(:metric)
end