Class: Albacore::NugetModel::IdVersion
- Inherits:
-
Object
- Object
- Albacore::NugetModel::IdVersion
- Defined in:
- lib/albacore/nuget_model.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(id, version) ⇒ IdVersion
constructor
A new instance of IdVersion.
- #to_s ⇒ Object
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/albacore/nuget_model.rb', line 12 def id @id end |
#version ⇒ Object (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_s ⇒ Object
16 17 18 |
# File 'lib/albacore/nuget_model.rb', line 16 def to_s "#{id}@#{version}" end |