Class: Google::Apis::GmailV1::PopSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmail_v1/classes.rb,
lib/google/apis/gmail_v1/representations.rb,
lib/google/apis/gmail_v1/representations.rb

Overview

POP settings for an account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PopSettings

Returns a new instance of PopSettings.



1562
1563
1564
# File 'lib/google/apis/gmail_v1/classes.rb', line 1562

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

Instance Attribute Details

#access_windowString

The range of messages which are accessible via POP. Corresponds to the JSON property accessWindow

Returns:

  • (String)


1554
1555
1556
# File 'lib/google/apis/gmail_v1/classes.rb', line 1554

def access_window
  @access_window
end

#dispositionString

The action that will be executed on a message after it has been fetched via POP. Corresponds to the JSON property disposition

Returns:

  • (String)


1560
1561
1562
# File 'lib/google/apis/gmail_v1/classes.rb', line 1560

def disposition
  @disposition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1567
1568
1569
1570
# File 'lib/google/apis/gmail_v1/classes.rb', line 1567

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