Class: Packages::Nuget::PackagesMetadataPresenter

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize, PresenterHelpers
Defined in:
app/presenters/packages/nuget/packages_metadata_presenter.rb

Constant Summary collapse

COUNT =
1.freeze

Constants included from PresenterHelpers

Packages::Nuget::PresenterHelpers::BLANK_STRING, Packages::Nuget::PresenterHelpers::PACKAGE_DEPENDENCY, Packages::Nuget::PresenterHelpers::PACKAGE_DEPENDENCY_GROUP

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods included from API::Helpers::RelatedResourcesHelpers

#expose_path, #expose_url, #issues_available?, #mrs_available?

Constructor Details

#initialize(packages) ⇒ PackagesMetadataPresenter

Returns a new instance of PackagesMetadataPresenter.


11
12
13
# File 'app/presenters/packages/nuget/packages_metadata_presenter.rb', line 11

def initialize(packages)
  @packages = packages
end

Instance Method Details

#countObject


15
16
17
# File 'app/presenters/packages/nuget/packages_metadata_presenter.rb', line 15

def count
  COUNT
end

#itemsObject


19
20
21
# File 'app/presenters/packages/nuget/packages_metadata_presenter.rb', line 19

def items
  [summary]
end