Class: Innodb::DataType::VariableBinaryType
- Inherits:
-
Object
- Object
- Innodb::DataType::VariableBinaryType
- Defined in:
- lib/innodb/data_type.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(base_type, modifiers, properties) ⇒ VariableBinaryType
constructor
A new instance of VariableBinaryType.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
219 220 221 |
# File 'lib/innodb/data_type.rb', line 219 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
219 220 221 |
# File 'lib/innodb/data_type.rb', line 219 def width @width end |