Class: Albacore::Package

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject (readonly)

id of the package as known by nuget



9
10
11
# File 'lib/albacore/package.rb', line 9

def id
  @id
end

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



20
21
22
# File 'lib/albacore/package.rb', line 20

def to_s
  "Package[#{path}]"
end