Sha256: 37cd2f759ea3181fc44e054b6fe4cc2f87cc0491ecc321515673338244e52fb5

Contents?: true

Size: 349 Bytes

Versions: 18

Compression:

Stored size: 349 Bytes

Contents

Rhosync::Server.api :set_refresh_time do |params,user|
  source = Source.load(params[:source_name],
    {:app_id => APP_NAME, :user_id => params[:user_name]})
  source.poll_interval = params[:poll_interval] if params[:poll_interval]
  params[:refresh_time] ||= 0
  source.read_state.refresh_time = Time.now.to_i + params[:refresh_time].to_i
  ''
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rhosync-2.0.3 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.2 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.1 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.rc2 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.rc1 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta13 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta12 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta11 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta10 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta9 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta8 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta7 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta6 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta4 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta3 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta2 lib/rhosync/api/set_refresh_time.rb
rhosync-2.0.0.beta1 lib/rhosync/api/set_refresh_time.rb