Class: HylaFAX::FaxStat
Constant Summary collapse
- DEFAULT_QUEUE =
'doneq'
- JOB_FORMAT =
'%j %a'
- STATES =
{ '?' => :undefined, 'T' => :suspended, 'P' => :pending, 'S' => :sleeping, 'B' => :blocked, 'W' => :waiting, 'R' => :running, 'D' => :done, 'F' => :failed, }
Constants inherited from Command
Command::DEFAULT_HOST, Command::DEFAULT_PASSWORD, Command::DEFAULT_PORT, Command::DEFAULT_USER
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Attributes inherited from Command
#ftp, #host, #password, #port, #user
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ FaxStat
constructor
A new instance of FaxStat.
- #run ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ FaxStat
Returns a new instance of FaxStat.
19 20 21 22 |
# File 'lib/hylafax/fax_stat.rb', line 19 def initialize(opts = {}) super @queue = opts.fetch(:queue) { DEFAULT_QUEUE } end |
Instance Attribute Details
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
17 18 19 |
# File 'lib/hylafax/fax_stat.rb', line 17 def queue @queue end |
Instance Method Details
#run ⇒ Object
24 25 26 27 28 29 |
# File 'lib/hylafax/fax_stat.rb', line 24 def run connect login set_jobformat list end |