Class: Google::Apis::AnalyticsreportingV4::SearchUserActivityResponse

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

Overview

The response from userActivity:get call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchUserActivityResponse

Returns a new instance of SearchUserActivityResponse.



1607
1608
1609
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1607

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

Instance Attribute Details

#next_page_tokenString

This token should be passed to SearchUserActivityRequest to retrieve the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1587
1588
1589
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1587

def next_page_token
  @next_page_token
end

#sample_rateFloat

This field represents the sampling rate for the given request and is a number between 0.0 to 1.0. See developer guide for details. Corresponds to the JSON property sampleRate

Returns:

  • (Float)


1595
1596
1597
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1595

def sample_rate
  @sample_rate
end

#sessionsArray<Google::Apis::AnalyticsreportingV4::UserActivitySession>

Each record represents a session (device details, duration, etc). Corresponds to the JSON property sessions



1600
1601
1602
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1600

def sessions
  @sessions
end

#total_rowsFixnum

Total rows returned by this query (across different pages). Corresponds to the JSON property totalRows

Returns:

  • (Fixnum)


1605
1606
1607
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1605

def total_rows
  @total_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1612
1613
1614
1615
1616
1617
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1612

def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
  @sessions = args[:sessions] if args.key?(:sessions)
  @total_rows = args[:total_rows] if args.key?(:total_rows)
end