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.
-
#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.
-
#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 |
# File 'lib/houdini-rails/task.rb', line 5 def initialize(name, ) @name = name @api = "simple" # options[:strategy] @on = [:on] || :after_create @if = [:if] || true @price = [:price] @title = [:title] @form_template = [:form_template] @after_submit = [:after_submit] @on_task_completion = [:on_task_completion] || :update_attributes 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 |
#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 |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/houdini-rails/task.rb', line 3 def title @title end |