Class: Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1DimensionValue

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 single dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePlayDeveloperReportingV1alpha1DimensionValue

Returns a new instance of GooglePlayDeveloperReportingV1alpha1DimensionValue.



323
324
325
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 323

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

Instance Attribute Details

#dimensionString

Name of the dimension. Corresponds to the JSON property dimension

Returns:

  • (String)


302
303
304
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 302

def dimension
  @dimension
end

#int64_valueFixnum

Actual value, represented as an int64. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


307
308
309
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 307

def int64_value
  @int64_value
end

#string_valueString

Actual value, represented as a string. Corresponds to the JSON property stringValue

Returns:

  • (String)


312
313
314
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 312

def string_value
  @string_value
end

#value_labelString

Optional. Human-friendly label for the value, always in English. For example, ' Spain' for the 'ES' country code. Whereas the dimension value is stable, this value label is subject to change. Do not assume that the (value, value_label) relationship is stable. For example, the ISO country code 'MK' changed its name recently to 'North Macedonia'. Corresponds to the JSON property valueLabel

Returns:

  • (String)


321
322
323
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 321

def value_label
  @value_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



328
329
330
331
332
333
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 328

def update!(**args)
  @dimension = args[:dimension] if args.key?(:dimension)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @string_value = args[:string_value] if args.key?(:string_value)
  @value_label = args[:value_label] if args.key?(:value_label)
end