Sha256: d7762deec12bb637381b1b0a118b23c2d722808d8971f70786f0d31403426e69

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

module Houdini
  class Task
    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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
houdini-rails3-0.1.8 lib/houdini_rails/task.rb
houdini-rails3-0.1.7 lib/houdini_rails/task.rb