Class: Algolia::RuleIterator

Inherits:
PaginatorIterator show all
Defined in:
lib/algolia/iterators/rule_iterator.rb

Instance Attribute Summary

Attributes inherited from BaseIterator

#index_name, #opts, #transporter

Instance Method Summary collapse

Methods inherited from PaginatorIterator

#each, #initialize

Methods inherited from BaseIterator

#initialize

Methods included from Helpers

#check_array, #check_object, #chunk, #deserialize_settings, #get_object_id, #get_option, #handle_params, #hash_includes_subset?, included, #json_to_hash, #path_encode, #symbolize_hash, #to_json, #to_query_string

Constructor Details

This class inherits a constructor from Algolia::PaginatorIterator

Instance Method Details

#get_endpointObject

Creates the endpoint on which to fetch rules



5
6
7
# File 'lib/algolia/iterators/rule_iterator.rb', line 5

def get_endpoint
  path_encode('1/indexes/%s/rules/search', @index_name)
end