Class: Cassandra::Types::Bigint

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 an Integer

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 an Integer

See Also:



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

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

#kindSymbol

Returns :bigint.

Returns:

  • (Symbol)

    :bigint

See Also:



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

def kind
end

#new(value) ⇒ Integer

Coerces the value to Integer

Parameters:

  • value (Object)

    original value

Returns:

  • (Integer)

    value

See Also:



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

def new(value)
end

#to_sString

Returns "bigint".

Returns:

  • (String)

    "bigint"

See Also:



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

def to_s
end