Class: GitlabChecks::Connector::Organisation
- Inherits:
-
Object
- Object
- GitlabChecks::Connector::Organisation
- Defined in:
- lib/gitlab_checks/connector/organisation.rb
Instance Attribute Summary collapse
-
#root_group ⇒ Object
readonly
Returns the value of attribute root_group.
Instance Method Summary collapse
-
#initialize(_endpoint, _token, _group) ⇒ Organisation
constructor
A new instance of Organisation.
Constructor Details
#initialize(_endpoint, _token, _group) ⇒ Organisation
Returns a new instance of Organisation.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gitlab_checks/connector/organisation.rb', line 8 def initialize(_endpoint, _token, _group) @root_group = nil @subgroups = nil @member = nil @repositories = nil Gitlab.configure do |config| config.endpoint = _endpoint config.private_token = _token if !_token.nil? config.user_agent = "Gitlab Checks v#{GitlabChecks::VERSION} (https://gitlab.com/zerosource/tools/gitlab_checks)" end @root_group = _group end |
Instance Attribute Details
#root_group ⇒ Object (readonly)
Returns the value of attribute root_group.
23 24 25 |
# File 'lib/gitlab_checks/connector/organisation.rb', line 23 def root_group @root_group end |