Module: SkypeArchive
- Defined in:
- lib/skype_archive.rb,
lib/skype_archive/model.rb,
lib/skype_archive/message.rb,
lib/skype_archive/version.rb
Defined Under Namespace
Constant Summary collapse
- URL =
"http://qa1.api.openfeint.com:8088"- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.search(account_name, text, options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/skype_archive.rb', line 13 def self.search(account_name, text, ={}) if [:from] [:timestamp] = Chronic.parse([:from]).to_i end Model.new(account_name).search(text, ) end |
.sync ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/skype_archive.rb', line 20 def self.sync Dir[File.("~/Library/Application\ Support/Skype/*")].each do |path| name = File.basename(path) if name =~ /^gii\./ Model.new(name).sync end end end |