Class: Spear::Plugins::SaveApis::AsyncSaveApi

Inherits:
Object
  • Object
show all
Includes:
HTTParty, SuckerPunch::Job
Defined in:
lib/spear/plugins/save_apis.rb

Instance Method Summary collapse

Instance Method Details

#perform(options = {}) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/spear/plugins/save_apis.rb', line 48

def perform(options={})
  self.class.post(
    'http://eventlogs.cb-apac.com/api/1/api-info',
    body: options.to_json,
    options: {headers: {'Content-Type' => 'application/json'}}
  )
end