Class: SupportOps::GitLab::UserMemberships

Inherits:
Base
  • Object
show all
Defined in:
lib/support_ops_gitlab/gitlab/user_memberships.rb

Overview

Defines the class UserMemberships within the module SupportOps::GitLab.

Author:

  • Jason Colyer

Since:

  • 1.0.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#activate!, #approve!, attributes, #badges, #ban!, #block!, client, #client=, #commits, configure, #contributors, #create_support_pin!, #deactivate!, define_attributes, #delete!, #diffs, #disable_2fa!, #discussions, #emails, #encoded_path, #events, #find, #find!, #gpg_keys, #hard_delete!, #impersonations, #initialize, #issues, #jobs, #latest_pipeline, #members, #memberships, #merge_requests, #move!, #notes, #paid?, #pats, #pipeline_variables, #pipelines, #preferences, #projects, readonly_attributes, #reject!, #revoke!, #rotate!, #save!, #ssh_keys, #status, #store_original_attributes, #subscribe!, #support_pin, to_hash, #tokens, #unban!, #unblock!, #unsubscribe!, #webhooks

Constructor Details

This class inherits a constructor from SupportOps::GitLab::Base

Instance Attribute Details

#access_levelInteger

Access level to the source

Returns:

  • (Integer)

    the current value of access_level



16
17
18
# File 'lib/support_ops_gitlab/gitlab/user_memberships.rb', line 16

def access_level
  @access_level
end

#source_idInteger

ID of the source

Returns:

  • (Integer)

    the current value of source_id



16
17
18
# File 'lib/support_ops_gitlab/gitlab/user_memberships.rb', line 16

def source_id
  @source_id
end

#source_nameString

Name of the source

Returns:

  • (String)

    the current value of source_name



16
17
18
# File 'lib/support_ops_gitlab/gitlab/user_memberships.rb', line 16

def source_name
  @source_name
end

#source_typeString

Membership type (Project or Namespace)

Returns:

  • (String)

    the current value of source_type



16
17
18
# File 'lib/support_ops_gitlab/gitlab/user_memberships.rb', line 16

def source_type
  @source_type
end