class Google::Apis::GmailV1::Draft

A draft email in the user's mailbox.

Attributes

id[RW]

The immutable ID of the draft. Corresponds to the JSON property `id` @return [String]

message[RW]

An email message. Corresponds to the JSON property `message` @return [Google::Apis::GmailV1::Message]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/gmail_v1/classes.rb, line 58
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/gmail_v1/classes.rb, line 63
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @message = args[:message] if args.key?(:message)
end