Class: Thunderbird::Profile
- Inherits:
-
Object
- Object
- Thunderbird::Profile
- Defined in:
- lib/thunderbird/profile.rb
Overview
A configured user profile
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title:, entries:) ⇒ Profile
constructor
entries are lines from profile.ini.
- #local_folders_path ⇒ Object
- #root ⇒ Object
Constructor Details
#initialize(title:, entries:) ⇒ Profile
entries are lines from profile.ini
12 13 14 15 |
# File 'lib/thunderbird/profile.rb', line 12 def initialize(title:, entries:) @title = title @entries = entries end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
9 10 11 |
# File 'lib/thunderbird/profile.rb', line 9 def entries @entries end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'lib/thunderbird/profile.rb', line 8 def title @title end |
Instance Method Details
#local_folders_path ⇒ Object
25 26 27 |
# File 'lib/thunderbird/profile.rb', line 25 def local_folders_path File.join(root, "Mail", "Local Folders") end |
#root ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/thunderbird/profile.rb', line 17 def root if relative? File.join(Thunderbird.new.data_path, entries[:Path]) else entries[:Path] end end |