Class: Imap::Backup::Serializer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/imap/backup/serializer/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, folder) ⇒ Base

Returns a new instance of Base.



10
11
12
13
# File 'lib/imap/backup/serializer/base.rb', line 10

def initialize(path, folder)
  @path, @folder = path, folder
  Utils.check_permissions(@path, DIRECTORY_PERMISSIONS)
end

Instance Attribute Details

#folder ⇒ Object (readonly)

Returns the value of attribute folder.



8
9
10
# File 'lib/imap/backup/serializer/base.rb', line 8

def folder
  @folder
end

#path ⇒ Object (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/imap/backup/serializer/base.rb', line 7

def path
  @path
end