Class: Google::Apis::GmailV1::AutoForwarding

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

Overview

Auto-forwarding settings for an account.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dispositionString

The state that a message should be left in after it has been forwarded. Corresponds to the JSON property disposition

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/gmail_v1/classes.rb', line 32

def disposition
  @disposition
end

#email_addressString

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

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/gmail_v1/classes.rb', line 38

def email_address
  @email_address
end

#enabledBoolean Also known as: enabled?

Whether all incoming mail is automatically forwarded to another address. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


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