Class: Rtlog::DayEntry

Inherits:
Entry
  • Object
show all
Defined in:
lib/rtlog/archives.rb

Instance Attribute Summary

Attributes inherited from Entry

#config, #logger, #path

Instance Method Summary collapse

Methods inherited from Entry

#==, #date, #initialize

Methods included from DirUtils

#entries

Constructor Details

This class inherits a constructor from Rtlog::Entry

Instance Method Details

#sizeObject



157
158
159
# File 'lib/rtlog/archives.rb', line 157

def size
  entries(@path).size
end

#tweetsObject



151
152
153
154
155
# File 'lib/rtlog/archives.rb', line 151

def tweets
  entries(@path).each do |path|
    yield Tweet.new(config, path)
  end
end