Class: DatabaseConsistency::Databases::Types::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/database_consistency/databases/types/base.rb

Overview

Base wrapper for database types

Direct Known Subclasses

Sqlite

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Base

Returns a new instance of Base.

Parameters:

  • type (String)


11
12
13
# File 'lib/database_consistency/databases/types/base.rb', line 11

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/database_consistency/databases/types/base.rb', line 8

def type
  @type
end

Instance Method Details

#convertString

Returns:

  • (String)


16
17
18
# File 'lib/database_consistency/databases/types/base.rb', line 16

def convert
  type
end