Class: Ldaptic::Syntaxes::DeliveryMethod

Inherits:
PrintableString show all
Defined in:
lib/ldaptic/syntaxes.rb

Constant Summary collapse

VALUES =
%w(any mhs physical telex teletex g3fax g4fax ia5 videotex telephone)

Constants inherited from Abstract

Abstract::PRINTABLE

Instance Method Summary collapse

Methods inherited from PrintableString

#parse

Methods inherited from Abstract

format, #format, #initialize, parse, #printable?

Constructor Details

This class inherits a constructor from Ldaptic::Syntaxes::Abstract

Instance Method Details

#error(string) ⇒ Object



277
278
279
# File 'lib/ldaptic/syntaxes.rb', line 277

def error(string)
  'is invalid' unless VALUES.include?(string)
end