module Shoulda::Matchers::ActiveModel
Public Instance Methods
require_a_valid_domain_name(attribute = :domain_name)
click to toggle source
# File lib/validates_host/require_a_valid_domain_name_matcher.rb, line 8 def require_a_valid_domain_name(attribute = :domain_name) RequireAValidDomainNameMatcher.new(attribute) end
require_a_valid_host_name(attribute = :host_name)
click to toggle source
# File lib/validates_host/require_a_valid_host_name_matcher.rb, line 8 def require_a_valid_host_name(attribute = :host_name) RequireAValidHostNameMatcher.new(attribute) end
require_a_valid_ip(attribute = :ip)
click to toggle source
# File lib/validates_host/require_a_valid_ip_matcher.rb, line 8 def require_a_valid_ip(attribute = :ip) RequireAValidIpMatcher.new(attribute) end
require_a_valid_subnet(attribute = :value)
click to toggle source
# File lib/validates_host/require_a_valid_subnet_matcher.rb, line 8 def require_a_valid_subnet(attribute = :value) RequireAValidSubnetMatcher.new(attribute) end