Class: Google::Apis::GmailV1::ListThreadsResponse

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

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) ⇒ ListThreadsResponse

Returns a new instance of ListThreadsResponse



865
866
867
# File 'generated/google/apis/gmail_v1/classes.rb', line 865

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

Instance Attribute Details

#next_page_tokenString

Page token to retrieve the next page of results in the list. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


853
854
855
# File 'generated/google/apis/gmail_v1/classes.rb', line 853

def next_page_token
  @next_page_token
end

#result_size_estimateFixnum

Estimated total number of results. Corresponds to the JSON property resultSizeEstimate

Returns:

  • (Fixnum)


858
859
860
# File 'generated/google/apis/gmail_v1/classes.rb', line 858

def result_size_estimate
  @result_size_estimate
end

#threadsArray<Google::Apis::GmailV1::Thread>

List of threads. Corresponds to the JSON property threads

Returns:



863
864
865
# File 'generated/google/apis/gmail_v1/classes.rb', line 863

def threads
  @threads
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



870
871
872
873
874
# File 'generated/google/apis/gmail_v1/classes.rb', line 870

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