Method: Array#fetch_objects

Defined in:
lib/parse/model/core/fetching.rb

#fetch_objects(lookup = :parallel) ⇒ Array<Parse::Object>

Fetches all the objects in the array that are in Pointer state.

Parameters:

  • lookup (Symbol) (defaults to: :parallel)

    The methodology to use for HTTP requests. Use :parallel to fetch all objects in parallel HTTP requests. Set to anything else to perform requests serially.

Returns:

See Also:



102
103
104
105
106
107
# File 'lib/parse/model/core/fetching.rb', line 102

def fetch_objects(lookup = :parallel)
  items = valid_parse_objects
  lookup == :parallel ? items.threaded_each(2,&:fetch) : items.each(&:fetch)
  #self.replace items
  self
end