Class: DynamicMigrations::Postgres::Generator::TriggerTemplateBase
- Inherits:
-
Object
- Object
- DynamicMigrations::Postgres::Generator::TriggerTemplateBase
- Defined in:
- lib/dynamic_migrations/postgres/generator/trigger_template_base.rb
Defined Under Namespace
Classes: TemplateError
Instance Attribute Summary collapse
-
#code_comment ⇒ Object
readonly
Returns the value of attribute code_comment.
-
#trigger ⇒ Object
readonly
Returns the value of attribute trigger.
Instance Method Summary collapse
-
#initialize(trigger, code_comment) ⇒ TriggerTemplateBase
constructor
A new instance of TriggerTemplateBase.
Constructor Details
#initialize(trigger, code_comment) ⇒ TriggerTemplateBase
Returns a new instance of TriggerTemplateBase.
11 12 13 14 |
# File 'lib/dynamic_migrations/postgres/generator/trigger_template_base.rb', line 11 def initialize trigger, code_comment @trigger = trigger @code_comment = code_comment end |
Instance Attribute Details
#code_comment ⇒ Object (readonly)
Returns the value of attribute code_comment.
9 10 11 |
# File 'lib/dynamic_migrations/postgres/generator/trigger_template_base.rb', line 9 def code_comment @code_comment end |
#trigger ⇒ Object (readonly)
Returns the value of attribute trigger.
8 9 10 |
# File 'lib/dynamic_migrations/postgres/generator/trigger_template_base.rb', line 8 def trigger @trigger end |