summaryrefslogtreecommitdiff
path: root/app/presenters/packages/nuget/package_metadata_presenter.rb
blob: 500fc982e11cf385e13d7e0716ba5aa94d3a1d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Packages
  module Nuget
    class PackageMetadataPresenter
      include Packages::Nuget::PresenterHelpers

      def initialize(package)
        @package = package
      end

      def json_url
        json_url_for(@package)
      end

      def archive_url
        archive_url_for(@package)
      end

      def catalog_entry
        catalog_entry_for(@package)
      end
    end
  end
end