Class: Bundler::Restrict::GemVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/restrict/gem_version.rb

Instance Method Summary collapse

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

#nameObject



11
12
13
# File 'lib/bundler/restrict/gem_version.rb', line 11

def name
  @gem.name
end

#numberObject



15
16
17
# File 'lib/bundler/restrict/gem_version.rb', line 15

def number
  @info['number']
end

#release_dateObject



19
20
21
# File 'lib/bundler/restrict/gem_version.rb', line 19

def release_date
  Date.parse @info['built_at']
end