Class: DynamicMigrations::Postgres::Generator::ValidationTemplateBase

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

Defined Under Namespace

Classes: TemplateError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(validation, code_comment) ⇒ ValidationTemplateBase

Returns a new instance of ValidationTemplateBase.



11
12
13
14
# File 'lib/dynamic_migrations/postgres/generator/validation_template_base.rb', line 11

def initialize validation, code_comment
  @validation = validation
  @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/validation_template_base.rb', line 9

def code_comment
  @code_comment
end

#validationObject (readonly)

Returns the value of attribute validation.



8
9
10
# File 'lib/dynamic_migrations/postgres/generator/validation_template_base.rb', line 8

def validation
  @validation
end