Class: Albacore::NugetModel::IdVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/albacore/nuget_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, version) ⇒ IdVersion

Returns a new instance of IdVersion.



10
11
12
# File 'lib/albacore/nuget_model.rb', line 10

def initialize id, version
  @id, @version = id, version
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/albacore/nuget_model.rb', line 13

def to_s
  "#{id}@#{version}"
end