Class: ActionTracker::Templates::BaseTemplate
- Inherits:
-
Object
- Object
- ActionTracker::Templates::BaseTemplate
- Defined in:
- lib/action_tracker/templates/base_template.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
- #form ⇒ Object
-
#initialize(target, options = {}) ⇒ BaseTemplate
constructor
A new instance of BaseTemplate.
Constructor Details
#initialize(target, options = {}) ⇒ BaseTemplate
Returns a new instance of BaseTemplate.
8 9 10 11 |
# File 'lib/action_tracker/templates/base_template.rb', line 8 def initialize(target, = {}) @target = target @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/action_tracker/templates/base_template.rb', line 6 def @options end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
6 7 8 |
# File 'lib/action_tracker/templates/base_template.rb', line 6 def target @target end |
Instance Method Details
#form ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/action_tracker/templates/base_template.rb', line 13 def form @form ||= ActionTracker::Models::TransitionRecord.new( payload: payload, reference: reference, created_at: created_at ).with_target(target) end |