Class: Bundler::Restrict::GemVersion
- Inherits:
-
Object
- Object
- Bundler::Restrict::GemVersion
- Defined in:
- lib/bundler/restrict/gem_version.rb
Instance Method Summary collapse
-
#initialize(gem, info) ⇒ GemVersion
constructor
A new instance of GemVersion.
- #name ⇒ Object
- #number ⇒ Object
- #release_date ⇒ Object
Constructor Details
#initialize(gem, info) ⇒ GemVersion
Returns a new instance of GemVersion.
6 7 8 9 |
# File 'lib/bundler/restrict/gem_version.rb', line 6 def initialize(gem, info) @gem = gem @info = info end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/bundler/restrict/gem_version.rb', line 11 def name @gem.name end |
#number ⇒ Object
15 16 17 |
# File 'lib/bundler/restrict/gem_version.rb', line 15 def number @info['number'] end |
#release_date ⇒ Object
19 20 21 |
# File 'lib/bundler/restrict/gem_version.rb', line 19 def release_date Date.parse @info['built_at'] end |