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.



1313
1314
1315
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1313

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



1306
1307
1308
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1306

def dimension_values
  @dimension_values
end

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

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



1311
1312
1313
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1311

def metric_values
  @metric_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1318
1319
1320
1321
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1318

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