Class: Google::Apis::AdmobV1::ReportRowDimensionValue

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

Overview

Representation of a dimension value.

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) ⇒ ReportRowDimensionValue

Returns a new instance of ReportRowDimensionValue.



862
863
864
# File 'generated/google/apis/admob_v1/classes.rb', line 862

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

Instance Attribute Details

#display_labelString

The localized string representation of the value. If unspecified, the display label should be derived from the value. Corresponds to the JSON property displayLabel

Returns:

  • (String)


854
855
856
# File 'generated/google/apis/admob_v1/classes.rb', line 854

def display_label
  @display_label
end

#valueString

Dimension value in the format specified in the report's spec Dimension enum. Corresponds to the JSON property value

Returns:

  • (String)


860
861
862
# File 'generated/google/apis/admob_v1/classes.rb', line 860

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



867
868
869
870
# File 'generated/google/apis/admob_v1/classes.rb', line 867

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