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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsreporting_v4/classes.rb,
lib/google/apis/analyticsreporting_v4/representations.rb,
lib/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.



1613
1614
1615
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1613

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)


1593
1594
1595
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1593

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)


1601
1602
1603
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1601

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



1606
1607
1608
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1606

def sessions
  @sessions
end

#total_rowsFixnum

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

Returns:

  • (Fixnum)


1611
1612
1613
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1611

def total_rows
  @total_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1618
1619
1620
1621
1622
1623
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1618

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