Class: Packages::Nuget::PackagesVersionsPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/packages/nuget/packages_versions_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(packages) ⇒ PackagesVersionsPresenter

Returns a new instance of PackagesVersionsPresenter.


6
7
8
# File 'app/presenters/packages/nuget/packages_versions_presenter.rb', line 6

def initialize(packages)
  @packages = packages
end

Instance Method Details

#versionsObject


10
11
12
# File 'app/presenters/packages/nuget/packages_versions_presenter.rb', line 10

def versions
  @packages.pluck_versions.sort
end