Class: Packages::Go::ModuleVersionPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/packages/go/module_version_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ ModuleVersionPresenter

Returns a new instance of ModuleVersionPresenter.


6
7
8
# File 'app/presenters/packages/go/module_version_presenter.rb', line 6

def initialize(version)
  @version = version
end

Instance Method Details

#nameObject


10
11
12
# File 'app/presenters/packages/go/module_version_presenter.rb', line 10

def name
  @version.name
end

#timeObject


14
15
16
# File 'app/presenters/packages/go/module_version_presenter.rb', line 14

def time
  @version.commit.committed_date
end