Class: Innodb::DataType::BinaryType

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

Overview

Fixed-length binary type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_type, modifiers, properties) ⇒ BinaryType

Returns a new instance of BinaryType.



206
207
208
209
# File 'lib/innodb/data_type.rb', line 206

def initialize(base_type, modifiers, properties)
  @width = modifiers.fetch(0, 1)
  @name = Innodb::DataType.make_name(base_type, modifiers, properties)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



204
205
206
# File 'lib/innodb/data_type.rb', line 204

def name
  @name
end

#widthObject (readonly)

Returns the value of attribute width.



204
205
206
# File 'lib/innodb/data_type.rb', line 204

def width
  @width
end