Method: Spider::Model::Query#only_one
- Defined in:
- lib/spiderfw/model/query.rb
#only_one ⇒ void
This method returns an undefined value.
Request only the first result.
169 170 171 172 |
# File 'lib/spiderfw/model/query.rb', line 169 def only_one self.limit = 1 @only_one = true end |