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

Classes: Message, Model

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(, text, options={})
  if options[:from]
    options[:timestamp] = Chronic.parse(options[:from]).to_i
  end
  Model.new().search(text, options)
end

.syncObject



20
21
22
23
24
25
26
27
# File 'lib/skype_archive.rb', line 20

def self.sync
  Dir[File.expand_path("~/Library/Application\ Support/Skype/*")].each do |path|
    name = File.basename(path)
    if name =~ /^gii\./
      Model.new(name).sync
    end
  end
end