Class: Freeagent::Timeslip
- Defined in:
- lib/freeagent_api.rb
Overview
Timeslips
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.find(*arguments) ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/freeagent_api.rb', line 96 def self.find(*arguments) scope = arguments.slice!(0) = arguments.slice!(0) || {} if [:params] && [:params][:from] && [:params][:to] [:params][:view] = [:params][:from]+'_'+[:params][:to] [:params].delete(:from) [:params].delete(:to) end 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 |