Class: Cassandra::Types::Counter

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

Instance Method Summary collapse

Methods inherited from Cassandra::Type

#initialize

Constructor Details

This class inherits a constructor from Cassandra::Type

Instance Method Details

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

This method returns an undefined value.

Asserts that a given value is an Integer

Yield Returns:

  • (String)

    error message to use when assertion fails

Raises:

  • if the value is not an Integer

See Also:

Parameters:

  • value to be validated

  • (defaults to: nil)

    error message to use when assertion fails



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

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

#kindSymbol

Returns :counter.

See Also:

Returns:

  • :counter



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

def kind
end

#new(value) ⇒ Integer

Coerces the value to Integer

See Also:

Parameters:

  • original value

Returns:

  • value



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

def new(value)
end

#to_sString

Returns "counter".

See Also:

Returns:

  • "counter"



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

def to_s
end