Class: Packages::Nuget::PackageMetadataPresenter

Inherits:
Object
  • Object
show all
Includes:
PresenterHelpers
Defined in:
app/presenters/packages/nuget/package_metadata_presenter.rb

Constant Summary

Constants included from PresenterHelpers

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

Instance Method Summary collapse

Methods included from API::Helpers::RelatedResourcesHelpers

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

Constructor Details

#initialize(package) ⇒ PackageMetadataPresenter

Returns a new instance of PackageMetadataPresenter.



8
9
10
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 8

def initialize(package)
  @package = package
end

Instance Method Details

#archive_urlObject



16
17
18
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 16

def archive_url
  archive_url_for(@package)
end

#catalog_entryObject



20
21
22
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 20

def catalog_entry
  catalog_entry_for(@package)
end

#json_urlObject



12
13
14
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 12

def json_url
  json_url_for(@package)
end