Class: Albacore::Package
- Inherits:
-
Object
- Object
- Albacore::Package
- Defined in:
- lib/albacore/package.rb
Overview
a package encapsulates the properties of a set package with a distinct path, version and id
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
id of the package as known by nuget.
-
#path ⇒ Object
readonly
path of the package in question.
Instance Method Summary collapse
-
#initialize(id, path) ⇒ Package
constructor
create a new package with the given id and path.
- #to_s ⇒ Object
Constructor Details
#initialize(id, path) ⇒ Package
create a new package with the given id and path
15 16 17 18 |
# File 'lib/albacore/package.rb', line 15 def initialize id, path @id = id @path = path end |
Instance Attribute Details
#id ⇒ Object (readonly)
id of the package as known by nuget
9 10 11 |
# File 'lib/albacore/package.rb', line 9 def id @id end |
#path ⇒ Object (readonly)
path of the package in question
12 13 14 |
# File 'lib/albacore/package.rb', line 12 def path @path end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/albacore/package.rb', line 20 def to_s "Package[#{path}]" end |