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

Version Path
rhoconnect-3.4.5 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.4.4 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.4.3 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.4.2 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.6 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.5 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.4 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.3 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.2 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.1 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.1.beta4 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.1.beta3 lib/rhoconnect/api/readstate/set_refresh_time.rb
rhoconnect-3.3.1.beta2 lib/rhoconnect/api/readstate/set_refresh_time.rb