20 lines
290 B
Ruby
20 lines
290 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Packages
|
||
|
module Go
|
||
|
class ModuleVersionPresenter
|
||
|
def initialize(version)
|
||
|
@version = version
|
||
|
end
|
||
|
|
||
|
def name
|
||
|
@version.name
|
||
|
end
|
||
|
|
||
|
def time
|
||
|
@version.commit.committed_date
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|