Class: Valle::AbstractAdapter::ByteLimitedColumn
- Inherits:
-
AbstractColumn
- Object
- AbstractColumn
- Valle::AbstractAdapter::ByteLimitedColumn
- Defined in:
- lib/valle/abstract_adapter/byte_limited_column.rb
Instance Method Summary collapse
Methods inherited from AbstractColumn
#initialize, #method_missing, #respond_to_method_missing?
Constructor Details
This class inherits a constructor from Valle::AbstractAdapter::AbstractColumn
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Valle::AbstractAdapter::AbstractColumn
Instance Method Details
#maximum ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/valle/abstract_adapter/byte_limited_column.rb', line 4 def maximum case limit when 1; 127 when 2; 32767 when 3; 8388607 when 4; 2147483647 when 6; 140737488355327 when 8; 9223372036854775807 end end |
#minimum ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/valle/abstract_adapter/byte_limited_column.rb', line 15 def minimum case limit when 1; -128 when 2; -32768 when 3; -8388608 when 4; -2147483648 when 6; -140737488355328 when 8; -9223372036854775808 end end |