Class: WickedPdf::Command::BatchJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/wicked_pdf/command.rb

Overview

A batch job with its argv compiled up front (thread-safe to run).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argvObject

Returns the value of attribute argv

Returns:

  • (Object)

    the current value of argv



67
68
69
# File 'lib/wicked_pdf/command.rb', line 67

def argv
  @argv
end

#jobObject

Returns the value of attribute job

Returns:

  • (Object)

    the current value of job



67
68
69
# File 'lib/wicked_pdf/command.rb', line 67

def job
  @job
end

Instance Method Details

#lineObject



72
73
74
# File 'lib/wicked_pdf/command.rb', line 72

def line
  @line ||= argv.join(' ')
end

#output_pathObject



68
69
70
# File 'lib/wicked_pdf/command.rb', line 68

def output_path
  job[:output_path]
end