Module: ContactSport
- Defined in:
- lib/contact_sport.rb,
lib/contact_sport/contact.rb,
lib/contact_sport/version.rb,
lib/contact_sport/encoding.rb,
lib/contact_sport/vcard_reader.rb,
lib/contact_sport/outlook_reader.rb
Defined Under Namespace
Modules: Encoding Classes: Contact, OutlookReader, VcardReader
Constant Summary collapse
- Error =
Superclass for all ContactSport errors.
Class.new RuntimeError
- UnknownProviderError =
Raised when a contacts file doesn’t appear to be Outlook CSV or vCard.
Class.new ContactSport::Error
- FormatError =
Raised when a contacts file cannot be parsed.
Class.new ContactSport::Error
- EncodingError =
Raised when a contacts file is in an unknown encoding.
Class.new ContactSport::Error
- EMPTY_FIELD =
''
- VERSION =
'1.0.2'
Class Method Summary collapse
Class Method Details
.contacts(file) ⇒ Object
21 22 23 |
# File 'lib/contact_sport.rb', line 21 def self.contacts(file) reader(file).contacts end |