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.



236
237
238
239
240
241
# File 'lib/innodb/data_type.rb', line 236

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.



233
234
235
# File 'lib/innodb/data_type.rb', line 233

def name
  @name
end

#widthObject (readonly)

Returns the value of attribute width.



234
235
236
# File 'lib/innodb/data_type.rb', line 234

def width
  @width
end