Class: FirefoxJson::Profiles::Profile
- Inherits:
-
Object
- Object
- FirefoxJson::Profiles::Profile
- Defined in:
- lib/firefox-json/profiles.rb
Overview
Collects methods to access a single profile’s session file
Instance Method Summary collapse
-
#initialize(data, ff_path) ⇒ Profile
constructor
A new instance of Profile.
- #path ⇒ Object
- #recovery_session ⇒ Object
- #session ⇒ Object
Constructor Details
#initialize(data, ff_path) ⇒ Profile
Returns a new instance of Profile.
9 10 11 12 |
# File 'lib/firefox-json/profiles.rb', line 9 def initialize(data, ff_path) @data = data @ff_path = ff_path end |
Instance Method Details
#path ⇒ Object
14 15 16 |
# File 'lib/firefox-json/profiles.rb', line 14 def path @path ||= @data['IsRelative'] == 1 ? File.join(@ff_path, @data['Path']) : @data['Path'] end |