Class: RPXNow::ContactsCollection
- Inherits:
-
Array
- Object
- Array
- RPXNow::ContactsCollection
- Defined in:
- lib/rpx_now/contacts_collection.rb
Instance Method Summary collapse
- #additional_info ⇒ Object
-
#initialize(list) ⇒ ContactsCollection
constructor
A new instance of ContactsCollection.
- #raw ⇒ Object
Constructor Details
#initialize(list) ⇒ ContactsCollection
Returns a new instance of ContactsCollection.
3 4 5 6 7 |
# File 'lib/rpx_now/contacts_collection.rb', line 3 def initialize(list) @raw = list @additional_info = list.reject{|k,v|k=='entry'} list['entry'].each{|item| self << parse_data(item)} end |
Instance Method Details
#additional_info ⇒ Object
9 |
# File 'lib/rpx_now/contacts_collection.rb', line 9 def additional_info;@additional_info;end |
#raw ⇒ Object
10 |
# File 'lib/rpx_now/contacts_collection.rb', line 10 def raw;@raw;end |