class Hubba::Folio::Repo
Attributes
name[R]
owner[R]
Public Class Methods
new( owner, name )
click to toggle source
# File lib/hubba/reports/folio.rb, line 9 def initialize( owner, name ) @owner = owner ## rename to login, username - why? why not? @name = name ## rename to reponame ?? end
Public Instance Methods
diff()
click to toggle source
# File lib/hubba/reports/folio.rb, line 25 def diff @diff ||= stats.calc_diff_stars( samples: 3, days: 30 ) end
full_name()
click to toggle source
# File lib/hubba/reports/folio.rb, line 14 def full_name() "#{owner}/#{name}"; end
stats()
click to toggle source
# File lib/hubba/reports/folio.rb, line 16 def stats ## note: load stats on demand only (first access) for now - why? why not? @stats ||= begin stats = Stats.new( full_name ) stats.read stats end end