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

Version Path
Amunds-rpx_now-0.5.8 lib/rpx_now/contacts_collection.rb
Chrononaut-rpx_now-0.5.6 lib/rpx_now/contacts_collection.rb
Chrononaut-rpx_now-0.5.9 lib/rpx_now/contacts_collection.rb
grosser-rpx_now-0.5.10 lib/rpx_now/contacts_collection.rb
grosser-rpx_now-0.5.4 lib/rpx_now/contacts_collection.rb
grosser-rpx_now-0.5.6 lib/rpx_now/contacts_collection.rb
grosser-rpx_now-0.5.7 lib/rpx_now/contacts_collection.rb
grosser-rpx_now-0.5.8 lib/rpx_now/contacts_collection.rb
grosser-rpx_now-0.5.9 lib/rpx_now/contacts_collection.rb
jackdempsey-rpx_now-0.5.8 lib/rpx_now/contacts_collection.rb
rpx_now-0.5.11 lib/rpx_now/contacts_collection.rb
rpx_now-0.5.10 lib/rpx_now/contacts_collection.rb