Class: OnlyofficeGmailHelper::MailAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_gmail_helper/email_account/mail_account.rb

Overview

Class for storing mail account data

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, pass) ⇒ MailAccount

Returns a new instance of MailAccount.



12
13
14
15
# File 'lib/onlyoffice_gmail_helper/email_account/mail_account.rb', line 12

def initialize(user, pass)
  @username = user
  @password = pass
end

Instance Attribute Details

#passwordString

Returns user password.

Returns:

  • (String)

    user password



10
11
12
# File 'lib/onlyoffice_gmail_helper/email_account/mail_account.rb', line 10

def password
  @password
end

#usernameString Also known as: login

Returns user name.

Returns:

  • (String)

    user name



7
8
9
# File 'lib/onlyoffice_gmail_helper/email_account/mail_account.rb', line 7

def username
  @username
end