Class: Cassandra::Types::Inet

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 IPAddr

Yield Returns:

  • (String)

    error message to use when assertion fails

Raises:

  • (ArgumentError)

    if the value is not an IPAddr

See Also:



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

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

#kindSymbol

Returns :inet.



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

def kind
end

#new(value) ⇒ IPAddr

Coerces the value to IPAddr



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

def new(value)
end

#to_sString

Returns "inet".



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

def to_s
end