Class: MockedFixtures::MockConnection::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/mocked_fixtures/mock_connection.rb

Overview

mock column class which is used in Fixtures class insert_fixtures method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Column

Returns a new instance of Column.



8
9
10
# File 'lib/mocked_fixtures/mock_connection.rb', line 8

def initialize(name, type)
  @name, @type = name, type
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/mocked_fixtures/mock_connection.rb', line 7

def name
  @name
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/mocked_fixtures/mock_connection.rb', line 7

def type
  @type
end