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.



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

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#to_sObject



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

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