Class: Google::Apis::GmailV1::ListThreadsResponse
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::ListThreadsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gmail_v1/classes.rb,
lib/google/apis/gmail_v1/representations.rb,
lib/google/apis/gmail_v1/representations.rb
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
Page token to retrieve the next page of results in the list.
-
#result_size_estimate ⇒ Fixnum
Estimated total number of results.
-
#threads ⇒ Array<Google::Apis::GmailV1::Thread>
List of threads.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListThreadsResponse
constructor
A new instance of ListThreadsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListThreadsResponse
Returns a new instance of ListThreadsResponse.
1175 1176 1177 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 1175 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
Page token to retrieve the next page of results in the list.
Corresponds to the JSON property nextPageToken
1161 1162 1163 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 1161 def next_page_token @next_page_token end |
#result_size_estimate ⇒ Fixnum
Estimated total number of results.
Corresponds to the JSON property resultSizeEstimate
1166 1167 1168 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 1166 def result_size_estimate @result_size_estimate end |
#threads ⇒ Array<Google::Apis::GmailV1::Thread>
List of threads. Note that each thread resource does not contain a list of
messages
. The list of messages
for a given thread can be fetched using the
threads.get method.
Corresponds to the JSON property threads
1173 1174 1175 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 1173 def threads @threads end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1180 1181 1182 1183 1184 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 1180 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate) @threads = args[:threads] if args.key?(:threads) end |