Method: Vcard::Vcard#name
- Defined in:
- lib/vcard/vcard.rb
#name ⇒ Object
The N and FN as a Name object.
N is required for a vCards, this raises InvalidEncodingError if there is no N so it cannot return nil.
841 842 843 |
# File 'lib/vcard/vcard.rb', line 841 def name value("N") || raise(::Vcard::InvalidEncodingError, "Missing mandatory N field") end |