Class: DevTools::Freshmeat::ReleaseInfo
- Inherits:
-
Object
- Object
- DevTools::Freshmeat::ReleaseInfo
- Defined in:
- lib/meta_project/release/freshmeat.rb
Overview
Provides information about a release.
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Change list of release.
-
#hidden ⇒ Object
readonly
True, if hidden from frontpage.
-
#release_focus ⇒ Object
readonly
Release focus.
-
#version ⇒ Object
readonly
Version string of release.
Instance Method Summary collapse
-
#initialize(version, changes, release_focus, hidden) ⇒ ReleaseInfo
constructor
Returns a new ReleaseInfo object.
- #to_s ⇒ Object
Constructor Details
#initialize(version, changes, release_focus, hidden) ⇒ ReleaseInfo
Returns a new ReleaseInfo object
55 56 57 |
# File 'lib/meta_project/release/freshmeat.rb', line 55 def initialize( version, changes, release_focus, hidden ) @version, @changes, @release_focus, @hidden = version, changes, release_focus, hidden end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Change list of release
46 47 48 |
# File 'lib/meta_project/release/freshmeat.rb', line 46 def changes @changes end |
#hidden ⇒ Object (readonly)
True, if hidden from frontpage
52 53 54 |
# File 'lib/meta_project/release/freshmeat.rb', line 52 def hidden @hidden end |
#release_focus ⇒ Object (readonly)
Release focus
49 50 51 |
# File 'lib/meta_project/release/freshmeat.rb', line 49 def release_focus @release_focus end |
#version ⇒ Object (readonly)
Version string of release
43 44 45 |
# File 'lib/meta_project/release/freshmeat.rb', line 43 def version @version end |
Instance Method Details
#to_s ⇒ Object
59 60 61 |
# File 'lib/meta_project/release/freshmeat.rb', line 59 def to_s "ReleaseInfo: version = #{@version}, release focus = #{ReleaseFocusID::NAMES[@release_focus]}, hidden = #{hidden}\nChanges = #{@changes}" end |