Class: CloudflareClient::Organization::Role
- Inherits:
-
CloudflareClient::Organization
- Object
- CloudflareClient
- CloudflareClient::Organization
- CloudflareClient::Organization::Role
- Defined in:
- lib/cloudflare_client/organization/role.rb
Constant Summary
Constants inherited from CloudflareClient
API_BASE, POSSIBLE_API_SETTINGS, VALID_BUNDLE_METHODS, VALID_DIRECTIONS, VALID_MATCHES, VERSION
Instance Attribute Summary
Attributes inherited from CloudflareClient::Organization
Instance Method Summary collapse
-
#list ⇒ Object
list all organization roles.
-
#show(id:) ⇒ Object
get details of an organization role.
Methods inherited from CloudflareClient::Organization
Methods inherited from CloudflareClient
Constructor Details
This class inherits a constructor from CloudflareClient::Organization
Instance Method Details
#list ⇒ Object
list all organization roles
8 9 10 |
# File 'lib/cloudflare_client/organization/role.rb', line 8 def list cf_get(path: "/organizations/#{org_id}/roles") end |
#show(id:) ⇒ Object
get details of an organization role
14 15 16 17 18 |
# File 'lib/cloudflare_client/organization/role.rb', line 14 def show(id:) id_check(:id, id) cf_get(path: "/organizations/#{org_id}/roles/#{id}") end |