Class: Google::Apis::GmailV1::ListDraftsResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListDraftsResponse

Returns a new instance of ListDraftsResponse.



980
981
982
# File 'lib/google/apis/gmail_v1/classes.rb', line 980

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

Instance Attribute Details

#draftsArray<Google::Apis::GmailV1::Draft>

List of drafts. Note that the Message property in each Draft resource only contains an id and a threadId. The messages.get method can fetch additional message details. Corresponds to the JSON property drafts

Returns:



968
969
970
# File 'lib/google/apis/gmail_v1/classes.rb', line 968

def drafts
  @drafts
end

#next_page_tokenString

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

Returns:

  • (String)


973
974
975
# File 'lib/google/apis/gmail_v1/classes.rb', line 973

def next_page_token
  @next_page_token
end

#result_size_estimateFixnum

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

Returns:

  • (Fixnum)


978
979
980
# File 'lib/google/apis/gmail_v1/classes.rb', line 978

def result_size_estimate
  @result_size_estimate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



985
986
987
988
989
# File 'lib/google/apis/gmail_v1/classes.rb', line 985

def update!(**args)
  @drafts = args[:drafts] if args.key?(:drafts)
  @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)
end