Class: Tanker::SearchState
- Inherits:
-
Object
- Object
- Tanker::SearchState
- Defined in:
- lib/tanker.rb
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(results, fetch, snippets, paginate) ⇒ SearchState
constructor
A new instance of SearchState.
- #paginate ⇒ Object
- #results ⇒ Object
- #snippets ⇒ Object
Constructor Details
#initialize(results, fetch, snippets, paginate) ⇒ SearchState
Returns a new instance of SearchState.
118 119 120 121 122 123 |
# File 'lib/tanker.rb', line 118 def initialize(results, fetch, snippets, paginate) @results = results @fetch = fetch @snippets = snippets @paginate = paginate end |
Instance Method Details
#fetch ⇒ Object
127 128 129 |
# File 'lib/tanker.rb', line 127 def fetch @fetch end |
#paginate ⇒ Object
133 134 135 |
# File 'lib/tanker.rb', line 133 def paginate @paginate end |
#results ⇒ Object
124 125 126 |
# File 'lib/tanker.rb', line 124 def results @results end |
#snippets ⇒ Object
130 131 132 |
# File 'lib/tanker.rb', line 130 def snippets @snippets end |