Class: Google::Apis::GmailV1::AutoForwarding
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::AutoForwarding
- 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
Auto-forwarding settings for an account.
Instance Attribute Summary collapse
-
#disposition ⇒ String
The state that a message should be left in after it has been forwarded.
-
#email_address ⇒ String
Email address to which all incoming messages are forwarded.
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether all incoming mail is automatically forwarded to another address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoForwarding
constructor
A new instance of AutoForwarding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoForwarding
Returns a new instance of AutoForwarding.
46 47 48 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 46 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disposition ⇒ String
The state that a message should be left in after it has been forwarded.
Corresponds to the JSON property disposition
32 33 34 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 32 def disposition @disposition end |
#email_address ⇒ String
Email address to which all incoming messages are forwarded. This email address
must be a verified member of the forwarding addresses.
Corresponds to the JSON property emailAddress
38 39 40 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 38 def email_address @email_address end |
#enabled ⇒ Boolean Also known as: enabled?
Whether all incoming mail is automatically forwarded to another address.
Corresponds to the JSON property enabled
43 44 45 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 43 def enabled @enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51 52 53 54 55 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 51 def update!(**args) @disposition = args[:disposition] if args.key?(:disposition) @email_address = args[:email_address] if args.key?(:email_address) @enabled = args[:enabled] if args.key?(:enabled) end |