Module: ActiveConnectDataIntegrations::Httparty

Extended by:
ActiveSupport::Concern
Included in:
ActiveConnect::ActiveConnectData
Defined in:
app/models/concerns/active_connect_data_integrations/httparty.rb

Instance Method Summary collapse

Instance Method Details

#httparty_update_dataObject



10
11
12
13
14
15
16
17
18
# File 'app/models/concerns/active_connect_data_integrations/httparty.rb', line 10

def httparty_update_data
  @tries = 0
  options = { headers: headers_settings, timeout: request_timeout }
  options.merge!(proxy_settings) if proxy_settings
  data = send_request(options)
  data = { status: data.code, body: data.body }
  save_data(data)
  data
end