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.



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

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/albacore/nuget_model.rb', line 16

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