Class: DevTools::Freshmeat::ReleaseInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_project/release/freshmeat.rb

Overview

Provides information about a release.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (readonly)

Change list of release



46
47
48
# File 'lib/meta_project/release/freshmeat.rb', line 46

def changes
  @changes
end

#hiddenObject (readonly)

True, if hidden from frontpage



52
53
54
# File 'lib/meta_project/release/freshmeat.rb', line 52

def hidden
  @hidden
end

#release_focusObject (readonly)

Release focus



49
50
51
# File 'lib/meta_project/release/freshmeat.rb', line 49

def release_focus
  @release_focus
end

#versionObject (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_sObject



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