Class: SFRest::Security_settings
- Inherits:
-
Object
- Object
- SFRest::Security_settings
- Defined in:
- lib/sfrest/security_settings.rb
Overview
We need to keep this naming due to the way connection.rb autoloads things. rubocop: disable Naming/ClassAndModuleCamelCase Manage the factory security settings.
Instance Method Summary collapse
-
#change_security_settings(data) ⇒ Array
Change security settings.
-
#current_security_settings ⇒ Array
Get current security settings.
-
#initialize(conn) ⇒ Security_settings
constructor
A new instance of Security_settings.
-
#reset_security_settings ⇒ Array
Reset current security settings.
Constructor Details
#initialize(conn) ⇒ Security_settings
Returns a new instance of Security_settings.
11 12 13 |
# File 'lib/sfrest/security_settings.rb', line 11 def initialize(conn) @conn = conn end |
Instance Method Details
#change_security_settings(data) ⇒ Array
Change security settings.
34 35 36 |
# File 'lib/sfrest/security_settings.rb', line 34 def change_security_settings(data) @conn.put('/api/v1/security', data.to_json) end |
#current_security_settings ⇒ Array
Get current security settings.
18 19 20 |
# File 'lib/sfrest/security_settings.rb', line 18 def current_security_settings @conn.get('/api/v1/security') end |
#reset_security_settings ⇒ Array
Reset current security settings.
41 42 43 |
# File 'lib/sfrest/security_settings.rb', line 41 def reset_security_settings @conn.delete('/api/v1/security') end |