Class: Innodb::DataType::VariableBinaryType

Inherits:
Object
  • Object
show all
Defined in:
lib/innodb/data_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_type, modifiers, properties) ⇒ VariableBinaryType

Returns a new instance of VariableBinaryType.



221
222
223
224
225
# File 'lib/innodb/data_type.rb', line 221

def initialize(base_type, modifiers, properties)
  @width = modifiers[0]
  raise "Invalid width specification" unless modifiers.size == 1
  @name = Innodb::DataType.make_name(base_type, modifiers, properties)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



219
220
221
# File 'lib/innodb/data_type.rb', line 219

def name
  @name
end

#widthObject (readonly)

Returns the value of attribute width.



219
220
221
# File 'lib/innodb/data_type.rb', line 219

def width
  @width
end