Class: ActiveRecordMigrationIndexMock
- Inherits:
-
Object
- Object
- ActiveRecordMigrationIndexMock
- Defined in:
- lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb
Instance Attribute Summary collapse
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table_name, column_name) ⇒ ActiveRecordMigrationIndexMock
constructor
A new instance of ActiveRecordMigrationIndexMock.
- #to_s ⇒ Object
Constructor Details
#initialize(table_name, column_name) ⇒ ActiveRecordMigrationIndexMock
Returns a new instance of ActiveRecordMigrationIndexMock.
7 8 9 10 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb', line 7 def initialize(table_name, column_name) @table_name = table_name @column_name = column_name end |
Instance Attribute Details
#column_name ⇒ Object
Returns the value of attribute column_name.
5 6 7 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb', line 5 def column_name @column_name end |
#table_name ⇒ Object
Returns the value of attribute table_name.
4 5 6 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb', line 4 def table_name @table_name end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb', line 12 def to_s "index table_name:#{table_name} column_name:#{column_name}" end |