Sha256: 2786243c955a8acf765629fda0439f181dda45ca24464774c56be33471eb32ef
Contents?: true
Size: 416 Bytes
Versions: 12
Compression:
Stored size: 416 Bytes
Contents
module RPXNow class ContactsCollection < Array def initialize(list) @raw = list @additional_info = list.reject{|k,v|k=='entry'} list['entry'].each{|item| self << parse_data(item)} end def additional_info;@additional_info;end def raw;@raw;end private def parse_data(entry) entry['emails'] = entry['emails'].map{|email| email['value']} entry end end end
Version data entries
12 entries across 12 versions & 5 rubygems