Class: Tanker::SearchState

Inherits:
Object
  • Object
show all
Defined in:
lib/tanker.rb

Instance Method Summary collapse

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

#fetchObject



127
128
129
# File 'lib/tanker.rb', line 127

def fetch
  @fetch
end

#paginateObject



133
134
135
# File 'lib/tanker.rb', line 133

def paginate
  @paginate
end

#resultsObject



124
125
126
# File 'lib/tanker.rb', line 124

def results
  @results
end

#snippetsObject



130
131
132
# File 'lib/tanker.rb', line 130

def snippets
  @snippets
end