Class: DynamicMigrations::Postgres::Generator::ValidationTemplateBase
- Inherits:
-
Object
- Object
- DynamicMigrations::Postgres::Generator::ValidationTemplateBase
- Defined in:
- lib/dynamic_migrations/postgres/generator/validation_template_base.rb
Defined Under Namespace
Classes: TemplateError
Instance Attribute Summary collapse
-
#code_comment ⇒ Object
readonly
Returns the value of attribute code_comment.
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
Instance Method Summary collapse
-
#initialize(validation, code_comment) ⇒ ValidationTemplateBase
constructor
A new instance of ValidationTemplateBase.
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_comment ⇒ Object (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 |
#validation ⇒ Object (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 |