Class: Thunderbird::Install

Inherits:
Object
  • Object
show all
Defined in:
lib/thunderbird/install.rb

Overview

Represents an installation of Thunderbird

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title:, entries:) ⇒ Install

entries are lines from profile.ini



12
13
14
15
# File 'lib/thunderbird/install.rb', line 12

def initialize(title:, entries:)
  @title = title
  @entries = entries
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



9
10
11
# File 'lib/thunderbird/install.rb', line 9

def entries
  @entries
end

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/thunderbird/install.rb', line 8

def title
  @title
end

Instance Method Details

#defaultObject



17
18
19
# File 'lib/thunderbird/install.rb', line 17

def default
  Profiles.new.profile_for_path(entries[:Default])
end