Class: SupportOps::GitLab::GroupMemberships

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

Overview

Defines the class GroupMemberships 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

The membership level

Returns:

  • (Integer)

    the current value of access_level



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def access_level
  @access_level
end

#avatar_urlString

URL of the user’s avatar

Returns:

  • (String)

    the current value of avatar_url



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def avatar_url
  @avatar_url
end

#created_atString

The time the membership was created at

Returns:

  • (String)

    the current value of created_at



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def created_at
  @created_at
end

#created_byHash

A hash containing information on who created the membership

Returns:

  • (Hash)

    the current value of created_by



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def created_by
  @created_by
end

#emailString

The email of the user

Returns:

  • (String)

    the current value of email



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def email
  @email
end

#expires_atString

The timestamp when the membership expires

Returns:

  • (String)

    the current value of expires_at



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def expires_at
  @expires_at
end

#group_saml_identityHash

A hash containing the group’s SAML information tied to the membership

Returns:

  • (Hash)

    the current value of group_saml_identity



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def group_saml_identity
  @group_saml_identity
end

#idInteger

The user’s ID

Returns:

  • (Integer)

    the current value of id



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def id
  @id
end

#nameString

The name of the user

Returns:

  • (String)

    the current value of name



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def name
  @name
end

#stateString

The state of the membership, can be awaiting or active

Returns:

  • (String)

    the current value of state



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def state
  @state
end

#usernameString

The username of the user

Returns:

  • (String)

    the current value of username



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def username
  @username
end

#web_urlString

The web URL of theuser

Returns:

  • (String)

    the current value of web_url



24
25
26
# File 'lib/support_ops_gitlab/gitlab/group_memberships.rb', line 24

def web_url
  @web_url
end