Class: Packages::Pypi::SimplePresenterBase
- Inherits:
-
Object
- Object
- Packages::Pypi::SimplePresenterBase
- Includes:
- API::Helpers::RelatedResourcesHelpers
- Defined in:
- app/presenters/packages/pypi/simple_presenter_base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(packages, project_or_group) ⇒ SimplePresenterBase
constructor
A new instance of SimplePresenterBase.
Methods included from API::Helpers::RelatedResourcesHelpers
#expose_path, #expose_url, #issues_available?, #mrs_available?, #project_feature_string_access_level
Constructor Details
#initialize(packages, project_or_group) ⇒ SimplePresenterBase
Returns a new instance of SimplePresenterBase.
10 11 12 13 |
# File 'app/presenters/packages/pypi/simple_presenter_base.rb', line 10 def initialize(packages, project_or_group) @packages = packages @project_or_group = project_or_group end |
Instance Method Details
#body ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/presenters/packages/pypi/simple_presenter_base.rb', line 15 def body <<-HTML <!DOCTYPE html> <html> <head> <title>Links for #{escape(body_name)}</title> </head> <body> <h1>Links for #{escape(body_name)}</h1> #{links} </body> </html> HTML end |