Class: GitlabCli::User

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab_cli/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, username, email, name, blocked, created_at, bio = nil, skype = nil, linkedin = nil, twitter = nil, extern_uid = nil, provider = nil) ⇒ User

Returns a new instance of User.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/gitlab_cli/user.rb', line 5

def initialize(id, username, email, name, blocked, created_at, bio=nil, skype=nil, linkedin=nil, twitter=nil, extern_uid=nil, provider=nil)
  @id = id
  @username = username
  @email = email
  @name = name
  @blocked = blocked
  @created_at = created_at
  @bio = bio
  @skype = skype
  @linkedin = linkedin
  @twitter = twitter
  @extern_uid = extern_uid
  @provider = provider
end

Instance Attribute Details

#bioObject

Returns the value of attribute bio.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def bio
  @bio
end

#blockedObject

Returns the value of attribute blocked.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def blocked
  @blocked
end

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def email
  @email
end

#extern_uidObject

Returns the value of attribute extern_uid.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def extern_uid
  @extern_uid
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def id
  @id
end

#linkedinObject

Returns the value of attribute linkedin.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def linkedin
  @linkedin
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def name
  @name
end

#providerObject

Returns the value of attribute provider.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def provider
  @provider
end

#skypeObject

Returns the value of attribute skype.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def skype
  @skype
end

#twitterObject

Returns the value of attribute twitter.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def twitter
  @twitter
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/gitlab_cli/user.rb', line 3

def username
  @username
end