Class: Abbu::Archive

Inherits:
Object
  • Object
show all
Defined in:
lib/abbu/archive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Archive

Returns a new instance of Archive.



12
13
14
15
# File 'lib/abbu/archive.rb', line 12

def initialize(path)
  @path = Pathname.new(path)
  validate!
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/abbu/archive.rb', line 10

def path
  @path
end

Instance Method Details

#contactsObject



17
18
19
# File 'lib/abbu/archive.rb', line 17

def contacts
  parser.contacts
end

#sqlite?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/abbu/archive.rb', line 21

def sqlite?
  db_paths.any?
end