Class: GemStats::Gem

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::Document
Defined in:
lib/gem_stats/gem.rb

Instance Method Summary collapse

Instance Method Details

#gem_infoObject



28
29
30
# File 'lib/gem_stats/gem.rb', line 28

def gem_info
  @gem_info ||= GemInfo.new(name)
end

#to_paramObject

to generate pretty url for rails



24
25
26
# File 'lib/gem_stats/gem.rb', line 24

def to_param
  name
end