Class: Cassandra::Types::Double

Inherits:
Cassandra::Type show all
Defined in:
lib/cassandra/types.rb

Instance Method Summary collapse

Instance Method Details

#assert(value, message = nil, &block) ⇒ void

This method returns an undefined value.

Asserts that a given value is a Float

Parameters:

  • value (Object)

    value to be validated

  • message (String) (defaults to: nil)

    error message to use when assertion fails

Yield Returns:

  • (String)

    error message to use when assertion fails

Raises:

  • (ArgumentError)

    if the value is not a Float

See Also:



22
23
# File 'lib/cassandra/types.rb', line 22

def assert(value, message = nil, &block)
end

#kindSymbol

Returns :double.

Returns:

  • (Symbol)

    :double

See Also:



4
5
# File 'lib/cassandra/types.rb', line 4

def kind
end

#new(value) ⇒ Float

Coerces the value to Float

Parameters:

  • value (Object)

    original value

Returns:

See Also:



11
12
# File 'lib/cassandra/types.rb', line 11

def new(value)
end

#to_sString

Returns "double".

Returns:

  • (String)

    "double"

See Also:



27
28
# File 'lib/cassandra/types.rb', line 27

def to_s
end