Module: ActiveRecord::Dbt::Table::Base
- Includes:
- Validation::TableNameValidator
- Defined in:
- lib/active_record/dbt/table/base.rb
Instance Attribute Summary collapse
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
Methods included from Validation::TableNameValidator
Instance Attribute Details
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
9 10 11 |
# File 'lib/active_record/dbt/table/base.rb', line 9 def table_name @table_name end |
Instance Method Details
#initialize(table_name) ⇒ Object
11 12 13 14 |
# File 'lib/active_record/dbt/table/base.rb', line 11 def initialize(table_name) @config = ActiveRecord::Dbt::Config.instance @table_name = validate_table_name(table_name, @config) end |