Class: Google::Apis::GmailV1::Draft
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::Draft
- 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
Overview
A draft email in the user's mailbox.
Instance Attribute Summary collapse
-
#id ⇒ String
The immutable ID of the draft.
-
#message ⇒ Google::Apis::GmailV1::Message
An email message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Draft
constructor
A new instance of Draft.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Draft
Returns a new instance of Draft.
91 92 93 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 91 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The immutable ID of the draft.
Corresponds to the JSON property id
84 85 86 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 84 def id @id end |
#message ⇒ Google::Apis::GmailV1::Message
An email message.
Corresponds to the JSON property message
89 90 91 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 89 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
96 97 98 99 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 96 def update!(**args) @id = args[:id] if args.key?(:id) @message = args[:message] if args.key?(:message) end |