Class: CloudflareClient::Organization::Role

Inherits:
CloudflareClient::Organization show all
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

#org_id

Instance Method Summary collapse

Methods inherited from CloudflareClient::Organization

#initialize, #update

Methods inherited from CloudflareClient

#initialize

Constructor Details

This class inherits a constructor from CloudflareClient::Organization

Instance Method Details

#listObject

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