Class: Net::IMAP::MailboxQuota

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap/response_data.rb

Overview

Net::IMAP::MailboxQuota represents contents of GETQUOTA response. This object can also be a response to GETQUOTAROOT. In the syntax specification below, the delimiter used with the “#” construct is a single space (SPACE).

quota_list      ::= "(" #quota_resource ")"

quota_resource  ::= atom SPACE number SPACE number

quota_response  ::= "QUOTA" SPACE astring SPACE quota_list

Fields:

mailbox

The mailbox with the associated quota.

usage

Current storage usage of the mailbox.

quota

Quota limit imposed on the mailbox.

Instance Attribute Summary collapse

Instance Attribute Details

#mailboxObject

Returns the value of attribute mailbox

Returns:

  • (Object)

    the current value of mailbox



153
154
155
# File 'lib/net/imap/response_data.rb', line 153

def mailbox
  @mailbox
end

#quotaObject

Returns the value of attribute quota

Returns:

  • (Object)

    the current value of quota



153
154
155
# File 'lib/net/imap/response_data.rb', line 153

def quota
  @quota
end

#usageObject

Returns the value of attribute usage

Returns:

  • (Object)

    the current value of usage



153
154
155
# File 'lib/net/imap/response_data.rb', line 153

def usage
  @usage
end