Sha256: 24987321321a686919dea0c2a8b0ac44a8620687d11f2d3a6f483fdd84afb1bb

Contents?: true

Size: 340 Bytes

Versions: 31

Compression:

Stored size: 340 Bytes

Contents

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

31 entries across 31 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.18.beta1 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta7 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta6 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta5 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta4 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta3 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta2 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.17.beta1 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.16 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.15 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.14 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.13 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.12 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.11 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.10 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.7 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.6 lib/rhosync/api/set_refresh_time.rb
rhosync-2.1.3 lib/rhosync/api/set_refresh_time.rb