Class: Google::Apis::AnalyticsdataV1beta::Row

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

Overview

Report data for each row. For example if RunReportRequest contains: none " dimensions": [ ` "name": "eventName" `, ` "name": "countryId" ` ], "metrics": [ ` "name": "eventCount" ` ] One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: none " dimensionValues": [ ` "value": "in_app_purchase" `, ` "value": "JP" ` ], " metricValues": [ ` "value": "15" ` ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Row

Returns a new instance of Row.



1925
1926
1927
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1925

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

Instance Attribute Details

#dimension_valuesArray<Google::Apis::AnalyticsdataV1beta::DimensionValue>

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. Corresponds to the JSON property dimensionValues



1918
1919
1920
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1918

def dimension_values
  @dimension_values
end

#metric_valuesArray<Google::Apis::AnalyticsdataV1beta::MetricValue>

List of requested visible metric values. Corresponds to the JSON property metricValues



1923
1924
1925
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1923

def metric_values
  @metric_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1930
1931
1932
1933
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1930

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