Class: Packages::Nuget::PackageMetadataPresenter
- Inherits:
-
Object
- Object
- Packages::Nuget::PackageMetadataPresenter
- 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
- #archive_url ⇒ Object
- #catalog_entry ⇒ Object
-
#initialize(package) ⇒ PackageMetadataPresenter
constructor
A new instance of PackageMetadataPresenter.
- #json_url ⇒ Object
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_url ⇒ Object
16 17 18 |
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 16 def archive_url archive_url_for(@package) end |
#catalog_entry ⇒ Object
20 21 22 |
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 20 def catalog_entry catalog_entry_for(@package) end |
#json_url ⇒ Object
12 13 14 |
# File 'app/presenters/packages/nuget/package_metadata_presenter.rb', line 12 def json_url json_url_for(@package) end |