Module: Auth0::Api::V1::Rules
- Included in:
- Auth0::Api::V1
- Defined in:
- lib/auth0/api/v1/rules.rb
Overview
Instance Method Summary (collapse)
- - (Object) create_rule(name, script, order = nil, status = true)
- - (Object) delete_rule(name)
- - (Object) rules (also: #get_rules)
- - (Object) update_rule(name, script, order = nil, status = true)
Instance Method Details
- (Object) create_rule(name, script, order = nil, status = true)
15 16 17 18 19 20 21 22 23 |
# File 'lib/auth0/api/v1/rules.rb', line 15 def create_rule(name, script, order=nil,status=true) path = "/api/rules" request_params = { name: name, status: status, script: script, order: order } post(path, request_params) end |
- (Object) delete_rule(name)
37 38 39 40 |
# File 'lib/auth0/api/v1/rules.rb', line 37 def delete_rule(name) path = "/api/rules/#{name}" delete(path) end |
- (Object) rules Also known as: get_rules
7 8 9 10 |
# File 'lib/auth0/api/v1/rules.rb', line 7 def rules path = "/api/rules" get(path) end |
- (Object) update_rule(name, script, order = nil, status = true)
26 27 28 29 30 31 32 33 34 |
# File 'lib/auth0/api/v1/rules.rb', line 26 def update_rule(name, script, order=nil,status=true) path = "/api/rules/#{name}" request_params = { status: status, script: script, order: order } put(path, request_params) end |