lib/zendesk_api/collection.rb
def fetch!(reload = false)
      if @resources && (!@fetchable || !reload)
        return @resources
      elsif association && association.options.parent && association.options.parent.new_record?
        return (@resources = [])
      end

      @response = get_response(@query || path)
      handle_response(@response.body)

      @resources
    end
def fetch!(reload = false)
      if @resources && (!@fetchable || !reload)
        return @resources
      elsif association && association.options.parent && association.options.parent.new_record?
        return (@resources = [])
      end

      @response = get_response(@query || path)
      handle_response(@response.body)

      @resources
    end
def fetch! ( reload = false ) if @resources && ( ! @fetchable || ! reload ) return @resources elsif association && association . options . parent && association . options . parent . new_record? return ( @resources = [ ] ) end @response = get_response ( @query || path ) handle_response ( @response . body ) @resources end
Executes actual GET from API and loads resources into proper class.
 @param [Boolean] reload Whether to disregard cache
Executes actual GET from API and loads resources into proper class .