class Albacore::NugetModel::IdVersion

Attributes

group[R]
id[R]
target_framework[R]
version[R]

Public Class Methods

new(id, version, group, target_framework) click to toggle source
# File lib/albacore/nuget_model.rb, line 14
def initialize id, version, group, target_framework
  @id, @version, @group, @target_framework = id, version, group, target_framework
end

Public Instance Methods

to_s() click to toggle source
# File lib/albacore/nuget_model.rb, line 18
def to_s
  if ! target_framework.nil? && target_framework != ''
    "#{id}@#{version} when #{target_framework}"
  else
    "#{id}@#{version} grouped:#{group}"
  end
end