Class: Quandl::Cassandra::Types::LongType
- Inherits:
-
AbstractType
- Object
- AbstractType
- Quandl::Cassandra::Types::LongType
- Defined in:
- lib/quandl/cassandra/types/long_type.rb
Instance Attribute Summary
Attributes inherited from AbstractType
Class Method Summary collapse
Methods inherited from AbstractType
#initialize, quote_string, #sanitize, #sanitize_for_cql, sanitize_for_cql
Constructor Details
This class inherits a constructor from Quandl::Cassandra::Types::AbstractType
Class Method Details
.sanitize(value) ⇒ Object
3 4 5 6 7 |
# File 'lib/quandl/cassandra/types/long_type.rb', line 3 def self.sanitize(value) Integer(value) rescue raise Quandl::Cassandra::Error::CastException.new("Unable to convert value to #{self.name} #{value}", value) end |