Sha256: ed6df90982acb2d7e24ccc44191aa487ff6ed52c6c2395bccb5e5700c4d541d1
Contents?: true
Size: 554 Bytes
Versions: 6
Compression:
Stored size: 554 Bytes
Contents
class Mite::TimeEntry::Bookmark < Mite::Base include Mite::ResourceWithoutWriteAccess self.prefix = "/time_entries/" def team? user_id.blank? end def params hash = CGI.parse(query) hash.each do |k, v| hash[k] = v[0] end hash end def follow Mite::TimeEntry.all(:params => params) end class << self def follow(id) get("#{id}/follow") rescue ActiveResource::Redirection => err query = err.response['Location'].split(/\?/,2)[1] || "" new(:query => query).follow end end end
Version data entries
6 entries across 6 versions & 1 rubygems