Class: DevTools::Freshmeat::Project

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

Overview

Describes a freshmeat project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shortName, fullName, status, version) ⇒ Project

Returns a new instance of Project.



29
30
31
# File 'lib/meta_project/release/freshmeat.rb', line 29

def initialize( shortName, fullName, status, version )
  @shortName, @fullName, @status, @version = shortName, fullName, status, version
end

Instance Attribute Details

#fullNameObject (readonly)

The full name of the project



21
22
23
# File 'lib/meta_project/release/freshmeat.rb', line 21

def fullName
  @fullName
end

#shortNameObject (readonly)

The short name of the project



18
19
20
# File 'lib/meta_project/release/freshmeat.rb', line 18

def shortName
  @shortName
end

#statusObject (readonly)

The status of the project (alpha, beta, …)



24
25
26
# File 'lib/meta_project/release/freshmeat.rb', line 24

def status
  @status
end

#versionObject (readonly)

The current version string of the project



27
28
29
# File 'lib/meta_project/release/freshmeat.rb', line 27

def version
  @version
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/meta_project/release/freshmeat.rb', line 33

def to_s
  "Project: short name = #{@shortName}, full name = #{@fullName}, status = #{@status}, version = #{@version}"
end