Method: EasyqaApi::Role.all

Defined in:
lib/easyqa_api/items/role.rb

.all(organization_id, user = @@default_user) ⇒ Array

Retrieve all roles from organization

Parameters:

  • user (Easyqapi::User) (defaults to: @@default_user)

    authenticated user in EasyQA

  • organization_id (Fixnum)

    Organization id on EasyQA website

Returns:

  • (Array)

    list of organization roles on EasyQA website

See Also:



26
27
28
29
30
31
32
# File 'lib/easyqa_api/items/role.rb', line 26

def self.all(organization_id, user = @@default_user)
  send_request("organizations/#{organization_id}/roles", :get) do |req|
    req.params = {
      auth_token: user.auth_token
    }
  end
end