Class: LabClient::GroupLink

Inherits:
Klass show all
Includes:
AccessLevel, ClassHelpers
Defined in:
lib/labclient/groups/ldap/link.rb

Overview

Inspect Helper

Constant Summary

Constants included from AccessLevel

AccessLevel::HUMAN_ACCESS_LEVELS, AccessLevel::MACHINE_ACCESS_LEVELS

Instance Attribute Summary

Attributes inherited from Klass

#client, #response

Attributes inherited from LabStruct

#response

Instance Method Summary collapse

Methods included from ClassHelpers

#has?, #keys, #raw

Methods included from AccessLevel

#human_access_level, #human_protected_access_level, #machine_access_level, #machine_protected_access_level

Methods inherited from Klass

#api_methods, #collect_project_id, #collect_release_id, #collect_repository_id, date_time_attrs, #format_time?, #group_name, #help, #initialize, #klass, #success?, #to_json, #update_self, user_attrs, #valid_group_project_levels, #verbose

Methods included from Docs

#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title

Methods included from CurlHelper

#curl

Methods inherited from LabStruct

#as_json, #client, #keys, #slice, #success?

Constructor Details

This class inherits a constructor from LabClient::Klass

Instance Method Details

#access_levelObject



13
14
15
# File 'lib/labclient/groups/ldap/link.rb', line 13

def access_level
  human_access_level group_access
end

#inspectObject



9
10
11
# File 'lib/labclient/groups/ldap/link.rb', line 9

def inspect
  "#<GroupLink provider: #{provider}, level: #{access_level}>"
end