Class: Gitea::UserReposResource
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#create(name:, **args) ⇒ Object
9
10
11
|
# File 'lib/gitea/resources/user_repos.rb', line 9
def create(name:, **args)
Repo.new post_request("user/repos", body: args.merge({name: name})).body
end
|
#list(**params) ⇒ Object
4
5
6
7
|
# File 'lib/gitea/resources/user_repos.rb', line 4
def list(**params)
response = get_request("user/repos", params: params)
Collection.from_response(response, type: Repo)
end
|