forked from Gitlink/forgeplus
24 lines
438 B
Ruby
24 lines
438 B
Ruby
class Gitea::Activity::ProjectService < Gitea::ClientService
|
|
attr_reader :from, :to, :top, :token
|
|
|
|
def initialize(from, to, top, token)
|
|
@from = from
|
|
@to = to
|
|
@top = top
|
|
@token = token
|
|
end
|
|
|
|
def call
|
|
response = get(url, params)
|
|
render_200_response(response)
|
|
end
|
|
|
|
private
|
|
def params
|
|
Hash.new.merge(from: from, to: to, top: top, token: token)
|
|
end
|
|
|
|
def url
|
|
"/activity/project".freeze
|
|
end
|
|
end |