lib/houdini_rails/task.rb in houdini-rails3-0.1.5 vs lib/houdini_rails/task.rb in houdini-rails3-0.1.7
- old
+ new
@@ -1,18 +1,20 @@
module Houdini
class Task
- attr_accessor :name, :api, :on, :if, :price, :title, :form_template, :after_submit, :on_task_completion, :matched_answers_size
+ attr_accessor :name, :api, :on, :if, :price, :title, :form_template, :text, :after_submit, :on_task_completion, :matched_answers_size, :max_iterations
def initialize(name, options)
@name = name
@api = options[:api] || "simple"
@on = options[:on] || :after_create
@if = options[:if] || true
@price = options[:price]
@title = options[:title]
@form_template = options[:form_template]
+ @text = options[:text]
@after_submit = options[:after_submit]
@on_task_completion = options[:on_task_completion] || :update_attributes
@matched_answers_size = options[:matched_answers_size]
+ @max_iterations = option[:max_iterations]
end
end
-end
\ No newline at end of file
+end