Class: Wajub::ShieldResource

Inherits:
BaseClient show all
Defined in:
lib/wajub/resources.rb

Instance Attribute Summary

Attributes inherited from BaseClient

#api_key, #base_url, #idempotency_key_prefix, #last_request, #transport

Instance Method Summary collapse

Methods inherited from BaseClient

#delete, #get, #initialize, #post, #put, #request

Constructor Details

This class inherits a constructor from Wajub::BaseClient

Instance Method Details

#get_settingsObject



260
261
262
# File 'lib/wajub/resources.rb', line 260

def get_settings
  HttpUtils.pick_resource(get('/shield/settings'), 'shield', 'settings')
end

#stats(params = nil) ⇒ Object



268
269
270
# File 'lib/wajub/resources.rb', line 268

def stats(params = nil)
  HttpUtils.pick_resource(get('/shield/stats', params), 'shield', 'stats')
end

#update_settings(params, options = nil) ⇒ Object



264
265
266
# File 'lib/wajub/resources.rb', line 264

def update_settings(params, options = nil)
  HttpUtils.pick_resource(put('/shield/settings', params, options), 'shield', 'settings')
end