Class: Google::Apis::GmailV1::ForwardingAddress

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

Settings for a forwarding address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ForwardingAddress

Returns a new instance of ForwardingAddress



289
290
291
# File 'generated/google/apis/gmail_v1/classes.rb', line 289

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

Instance Attribute Details

#forwarding_emailString

An email address to which messages can be forwarded. Corresponds to the JSON property forwardingEmail

Returns:

  • (String)


281
282
283
# File 'generated/google/apis/gmail_v1/classes.rb', line 281

def forwarding_email
  @forwarding_email
end

#verification_statusString

Indicates whether this address has been verified and is usable for forwarding. Read-only. Corresponds to the JSON property verificationStatus

Returns:

  • (String)


287
288
289
# File 'generated/google/apis/gmail_v1/classes.rb', line 287

def verification_status
  @verification_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



294
295
296
297
# File 'generated/google/apis/gmail_v1/classes.rb', line 294

def update!(**args)
  @forwarding_email = args[:forwarding_email] if args.key?(:forwarding_email)
  @verification_status = args[:verification_status] if args.key?(:verification_status)
end