Method: OldApiResource::Base.find
- Defined in:
- lib/old_api_resource/base.rb
.find(*arguments) ⇒ Object
192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/old_api_resource/base.rb', line 192 def find(*arguments) scope = arguments.slice!(0) = arguments.slice!(0) || {} case scope when :all then find_every() when :first then find_every().first when :last then find_every().last when :one then find_one() else find_single(scope, ) end end |