Class: Innodb::DataType::BinaryType
- Inherits:
-
Object
- Object
- Innodb::DataType::BinaryType
- Defined in:
- lib/innodb/data_type.rb
Overview
Fixed-length binary type.
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) ⇒ BinaryType
constructor
A new instance of BinaryType.
Constructor Details
#initialize(base_type, modifiers, properties) ⇒ BinaryType
Returns a new instance of BinaryType.
226 227 228 229 |
# File 'lib/innodb/data_type.rb', line 226 def initialize(base_type, modifiers, properties) @width = modifiers.fetch(0, 1) @name = Innodb::DataType.make_name(base_type, modifiers, properties) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
223 224 225 |
# File 'lib/innodb/data_type.rb', line 223 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
224 225 226 |
# File 'lib/innodb/data_type.rb', line 224 def width @width end |