Class: DynamicMigrations::Postgres::Generator::TriggerTemplateBase

Inherits:
Object
  • Object
show all
Defined in:
lib/dynamic_migrations/postgres/generator/trigger_template_base.rb

Defined Under Namespace

Classes: TemplateError

Instance Attribute Summary collapse

Instance Method Summary collapse

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_commentObject (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

#triggerObject (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