Class: Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1MetricValue

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

Overview

Represents the value of a metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePlayDeveloperReportingV1alpha1MetricValue

Returns a new instance of GooglePlayDeveloperReportingV1alpha1MetricValue.



889
890
891
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 889

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

Instance Attribute Details

#decimal_valueGoogle::Apis::PlaydeveloperreportingV1alpha1::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. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/ api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python. org/3/library/decimal.html Corresponds to the JSON property decimalValue



877
878
879
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 877

def decimal_value
  @decimal_value
end

#decimal_value_confidence_intervalGoogle::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval

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



882
883
884
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 882

def decimal_value_confidence_interval
  @decimal_value_confidence_interval
end

#metricString

Name of the metric. Corresponds to the JSON property metric

Returns:

  • (String)


887
888
889
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 887

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



894
895
896
897
898
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 894

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