Class: Houdini::Task
- Inherits:
-
Object
- Object
- Houdini::Task
- Defined in:
- lib/houdini_rails/task.rb
Instance Attribute Summary collapse
-
#after_submit ⇒ Object
Returns the value of attribute after_submit.
-
#api ⇒ Object
Returns the value of attribute api.
-
#form_template ⇒ Object
Returns the value of attribute form_template.
-
#if ⇒ Object
Returns the value of attribute if.
-
#matched_answers_size ⇒ Object
Returns the value of attribute matched_answers_size.
-
#max_iterations ⇒ Object
Returns the value of attribute max_iterations.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on ⇒ Object
Returns the value of attribute on.
-
#on_task_completion ⇒ Object
Returns the value of attribute on_task_completion.
-
#price ⇒ Object
Returns the value of attribute price.
-
#text ⇒ Object
Returns the value of attribute text.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(name, options) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name, options) ⇒ Task
Returns a new instance of Task.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/houdini_rails/task.rb', line 5 def initialize(name, ) @name = name @api = [:api] || "simple" @on = [:on] || :after_create @if = [:if] || true @price = [:price] @title = [:title] @form_template = [:form_template] @text = [:text] @after_submit = [:after_submit] @on_task_completion = [:on_task_completion] || :update_attributes @matched_answers_size = [:matched_answers_size] @max_iterations = [:max_iterations] end |
Instance Attribute Details
#after_submit ⇒ Object
Returns the value of attribute after_submit.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def after_submit @after_submit end |
#api ⇒ Object
Returns the value of attribute api.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def api @api end |
#form_template ⇒ Object
Returns the value of attribute form_template.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def form_template @form_template end |
#if ⇒ Object
Returns the value of attribute if.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def if @if end |
#matched_answers_size ⇒ Object
Returns the value of attribute matched_answers_size.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def matched_answers_size @matched_answers_size end |
#max_iterations ⇒ Object
Returns the value of attribute max_iterations.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def max_iterations @max_iterations end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def name @name end |
#on ⇒ Object
Returns the value of attribute on.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def on @on end |
#on_task_completion ⇒ Object
Returns the value of attribute on_task_completion.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def on_task_completion @on_task_completion end |
#price ⇒ Object
Returns the value of attribute price.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def price @price end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def text @text end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/houdini_rails/task.rb', line 3 def title @title end |