When attempting to use the `[]` accessor on collection it will not always return the correct resource. For example, when accessing lists: ``` api.account.lists[LIST_ID] #=> returns an empty resource ``` ``` api.account.lists.find_by_id(LIST_ID) #=> returns the correct list ``` I suspect this is because the call to `[]` gives: ``` def [](id) @entries[id] ||= fetch_entry(id) end ... def fetch_entry(id) @klass.new(client, get(path).merge(:parent => self)) end ``` Where `fetch_entry` does not make use of the passed id, resulting in an empty resource.
When attempting to use the
[]accessor on collection it will not always return the correct resource.For example, when accessing lists:
I suspect this is because the call to
[]gives:Where
fetch_entrydoes not make use of the passed id, resulting in an empty resource.