Class: Gitlab::Git::Wiki::CommitDetails

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/git/wiki.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email


12
13
14
# File 'lib/gitlab/git/wiki.rb', line 12

def email
  @email
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message


12
13
14
# File 'lib/gitlab/git/wiki.rb', line 12

def message
  @message
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


12
13
14
# File 'lib/gitlab/git/wiki.rb', line 12

def name
  @name
end

#user_idObject

Returns the value of attribute user_id

Returns:

  • (Object)

    the current value of user_id


12
13
14
# File 'lib/gitlab/git/wiki.rb', line 12

def user_id
  @user_id
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username


12
13
14
# File 'lib/gitlab/git/wiki.rb', line 12

def username
  @username
end

Instance Method Details

#to_hObject


13
14
15
# File 'lib/gitlab/git/wiki.rb', line 13

def to_h
  { user_id: user_id, username: username, name: name, email: email, message: message }
end