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.



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

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#to_sObject



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

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