Class: Google::Apis::AppsactivityV1::ListActivitiesResponse

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

Overview

The response from the list request. Contains a list of activities and a token to retrieve the next page of results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListActivitiesResponse

Returns a new instance of ListActivitiesResponse



139
140
141
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 139

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

Instance Attribute Details

#activitiesArray<Google::Apis::AppsactivityV1::Activity>

List of activities. Corresponds to the JSON property activities



132
133
134
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 132

def activities
  @activities
end

#next_page_tokenString

Token for the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 137

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



144
145
146
147
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 144

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