module Paysio class ListObject < PaysioObject def each(&blk) self.data.each(&blk) end def all(filters={}) response, api_key = Paysio.request(:get, url, api_key, filters) Util.convert_to_paysio_object(response, api_key) end end end