Module: Qwirk::Batch::FileWorker::ClassMethods

Defined in:
lib/qwirk/batch/file_worker.rb

Instance Method Summary collapse

Instance Method Details

#file(options) ⇒ Object

Define the marshaling and time_to_live that will occur on the response



30
31
32
# File 'lib/qwirk/batch/file_worker.rb', line 30

def file(options)
  @file_options = options
end

#file_optionsObject



34
35
36
# File 'lib/qwirk/batch/file_worker.rb', line 34

def file_options
  @file_options
end

#marshal(marshal_type) ⇒ Object



38
39
40
# File 'lib/qwirk/batch/file_worker.rb', line 38

def marshal(marshal_type)
  @marshal_type = marshal_type
end

#marshal_typeObject



42
43
44
# File 'lib/qwirk/batch/file_worker.rb', line 42

def marshal_type
  @marshal_type
end

#queue(name, opts = {}) ⇒ Object



46
47
48
49
# File 'lib/qwirk/batch/file_worker.rb', line 46

def queue(name, opts={})
  @queue_name = name
  @reply_queue_name = opts[:reply_queue]
end

#queue_nameObject



51
52
53
# File 'lib/qwirk/batch/file_worker.rb', line 51

def queue_name
  @queue_name
end

#reply_queue_nameObject



55
56
57
# File 'lib/qwirk/batch/file_worker.rb', line 55

def reply_queue_name
  @reply_queue_name
end