Class: Gitea::UserResource

Inherits:
Resource show all
Defined in:
lib/gitea/resources/user.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Gitea::Resource

Instance Method Details

#emailsObject



8
9
10
11
# File 'lib/gitea/resources/user.rb', line 8

def emails
  response = get_request("user/emails")
  Collection.from_response(response, type: Email)
end

#getObject



4
5
6
# File 'lib/gitea/resources/user.rb', line 4

def get
  User.new get_request("user").body
end