Class: Algolia::BaseIterator
- Inherits:
-
Object
- Object
- Algolia::BaseIterator
- Includes:
- Enumerable, Helpers
- Defined in:
- lib/algolia/iterators/base_iterator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#index_name ⇒ Object
readonly
Returns the value of attribute index_name.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#transporter ⇒ Object
readonly
Returns the value of attribute transporter.
Instance Method Summary collapse
-
#initialize(transporter, index_name, opts) ⇒ BaseIterator
constructor
A new instance of BaseIterator.
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
#initialize(transporter, index_name, opts) ⇒ BaseIterator
Returns a new instance of BaseIterator.
12 13 14 15 16 17 |
# File 'lib/algolia/iterators/base_iterator.rb', line 12 def initialize(transporter, index_name, opts) @transporter = transporter @index_name = index_name @opts = opts @response = nil end |
Instance Attribute Details
#index_name ⇒ Object (readonly)
Returns the value of attribute index_name.
6 7 8 |
# File 'lib/algolia/iterators/base_iterator.rb', line 6 def index_name @index_name end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
6 7 8 |
# File 'lib/algolia/iterators/base_iterator.rb', line 6 def opts @opts end |
#transporter ⇒ Object (readonly)
Returns the value of attribute transporter.
6 7 8 |
# File 'lib/algolia/iterators/base_iterator.rb', line 6 def transporter @transporter end |