Sha256: cd0efb9cdc19e3b20cc83d805f3c499b9d1a80131341862eb12b9de38f7472fe
Contents?: true
Size: 534 Bytes
Versions: 13
Compression:
Stored size: 534 Bytes
Contents
Server.api4 :set_refresh_time, :put, "/rc/#{Rhoconnect::API_VERSION}/readstate/users/:user_name/sources/:source_name", \ true, {:verb => :post, :url => ['/api/set_refresh_time', '/api/source/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
13 entries across 13 versions & 1 rubygems