Class: MailRoom::Delivery::Que::Options
- Inherits:
-
Struct
- Object
- Struct
- MailRoom::Delivery::Que::Options
- Defined in:
- lib/mail_room/delivery/que.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#host ⇒ Object
Returns the value of attribute host.
-
#job_class ⇒ Object
Returns the value of attribute job_class.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(mailbox) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(mailbox) ⇒ Options
Returns a new instance of Options.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/mail_room/delivery/que.rb', line 11 def initialize(mailbox) host = mailbox.[:host] || "localhost" port = mailbox.[:port] || 5432 database = mailbox.[:database] username = mailbox.[:username] password = mailbox.[:password] queue = mailbox.[:queue] || '' priority = mailbox.[:priority] || 100 # lowest priority for Que job_class = mailbox.[:job_class] logger = mailbox.logger super(host, port, database, username, password, queue, priority, job_class, logger) end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def database @database end |
#host ⇒ Object
Returns the value of attribute host
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def host @host end |
#job_class ⇒ Object
Returns the value of attribute job_class
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def job_class @job_class end |
#logger ⇒ Object
Returns the value of attribute logger
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def password @password end |
#port ⇒ Object
Returns the value of attribute port
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def port @port end |
#priority ⇒ Object
Returns the value of attribute priority
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def priority @priority end |
#queue ⇒ Object
Returns the value of attribute queue
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def queue @queue end |
#username ⇒ Object
Returns the value of attribute username
10 11 12 |
# File 'lib/mail_room/delivery/que.rb', line 10 def username @username end |