Class: ActiveRecordMigrationColumnMock
- Inherits:
-
Object
- Object
- ActiveRecordMigrationColumnMock
- Defined in:
- lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, options = {}) ⇒ ActiveRecordMigrationColumnMock
constructor
A new instance of ActiveRecordMigrationColumnMock.
- #to_s ⇒ Object
Constructor Details
#initialize(name, type, options = {}) ⇒ ActiveRecordMigrationColumnMock
Returns a new instance of ActiveRecordMigrationColumnMock.
8 9 10 11 12 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb', line 8 def initialize(name, type, = {}) @name = name @type = type @options = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb', line 6 def @options end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb', line 5 def type @type end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb', line 14 def to_s "column name:#{name} type:#{type} options:#{.inspect}" end |