Class: Google::Apis::AdmobV1::ReportRowMetricValue

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 metric value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportRowMetricValue

Returns a new instance of ReportRowMetricValue.



764
765
766
# File 'generated/google/apis/admob_v1/classes.rb', line 764

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

Instance Attribute Details

#double_valueFloat

Double precision (approximate) decimal values. Rates are from 0 to 1. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


750
751
752
# File 'generated/google/apis/admob_v1/classes.rb', line 750

def double_value
  @double_value
end

#integer_valueFixnum

Metric integer value. Corresponds to the JSON property integerValue

Returns:

  • (Fixnum)


755
756
757
# File 'generated/google/apis/admob_v1/classes.rb', line 755

def integer_value
  @integer_value
end

#micros_valueFixnum

Amount in micros. One million is equivalent to one unit. Currency value is in the unit (USD, EUR or other) specified by the request. For example, $6.50 whould be represented as 6500000 micros. Corresponds to the JSON property microsValue

Returns:

  • (Fixnum)


762
763
764
# File 'generated/google/apis/admob_v1/classes.rb', line 762

def micros_value
  @micros_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



769
770
771
772
773
# File 'generated/google/apis/admob_v1/classes.rb', line 769

def update!(**args)
  @double_value = args[:double_value] if args.key?(:double_value)
  @integer_value = args[:integer_value] if args.key?(:integer_value)
  @micros_value = args[:micros_value] if args.key?(:micros_value)
end