Class: Y2Packager::ReleaseNotesFetchers::Base
- Inherits:
-
Object
- Object
- Y2Packager::ReleaseNotesFetchers::Base
- Includes:
- Yast::Logger
- Defined in:
- library/packages/src/lib/y2packager/release_notes_fetchers/base.rb
Overview
Base class for release notes fetchers
A release note fetcher offers a mechanism to get release notes from a determined source. If you want to define a new way of getting release notes for a given product, you should define a class that inherits from this Base class and implements its API.
Instance Attribute Summary collapse
-
#product ⇒ Product
readonly
Product to get release notes for.
Instance Method Summary collapse
-
#initialize(product) ⇒ Base
constructor
Constructor.
-
#latest_version ⇒ String, Symbol
Return release notes latest version identifier.
-
#release_notes(_prefs) ⇒ String?
Get release notes for the given product.
Constructor Details
#initialize(product) ⇒ Base
Constructor
33 34 35 |
# File 'library/packages/src/lib/y2packager/release_notes_fetchers/base.rb', line 33 def initialize(product) @product = product end |
Instance Attribute Details
#product ⇒ Product (readonly)
Returns Product to get release notes for.
28 29 30 |
# File 'library/packages/src/lib/y2packager/release_notes_fetchers/base.rb', line 28 def product @product end |
Instance Method Details
#latest_version ⇒ String, Symbol
Return release notes latest version identifier
49 50 51 |
# File 'library/packages/src/lib/y2packager/release_notes_fetchers/base.rb', line 49 def latest_version raise NotImplementedError, "#latest_version not implemented" end |
#release_notes(_prefs) ⇒ String?
Get release notes for the given product
42 43 44 |
# File 'library/packages/src/lib/y2packager/release_notes_fetchers/base.rb', line 42 def release_notes(_prefs) raise NotImplementedError, "#release_notes not implemented" end |