Class: Gemdiff::OutdatedGem

Inherits:
Object
  • Object
show all
Defined in:
lib/gemdiff/outdated_gem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, old_version, new_version) ⇒ OutdatedGem

Returns a new instance of OutdatedGem.



5
6
7
8
9
# File 'lib/gemdiff/outdated_gem.rb', line 5

def initialize(name, old_version, new_version)
  @name = name
  @old_version = old_version
  @new_version = new_version
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/gemdiff/outdated_gem.rb', line 3

def name
  @name
end

#new_versionObject

Returns the value of attribute new_version.



3
4
5
# File 'lib/gemdiff/outdated_gem.rb', line 3

def new_version
  @new_version
end

#old_versionObject

Returns the value of attribute old_version.



3
4
5
# File 'lib/gemdiff/outdated_gem.rb', line 3

def old_version
  @old_version
end