Skip to content

enum Athena::Validator::Constraints::IP::Version #

Determines how the IP address should be validated.

Members#

V4 = 0 #

Validates for IPv4 addresses.

V6 = 1 #

Validates for IPv6 addresses.

V4_V6 = 2 #

Validates for IPv4 or IPv6 addresses.

Methods#

#pattern : ::Regex #

Returns the ::Regex pattern for self.

View source

#v4? #

View source

#v4_v6? #

View source

#v6? #

View source