Class: KindleNotebook::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/kindle-notebook.rb,
lib/kindle_notebook/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



27
28
29
30
31
32
33
34
35
# File 'lib/kindle-notebook.rb', line 27

def initialize
  @url = ENV["KINDLE_READER_URL"]
  @login = ENV["AMAZON_EMAIL"]
  @password = ENV["AMAZON_PASSWORD"]
  @selenium_driver = ENV["SELENIUM_DRIVER"]
  @headless_mode = ENV["HEADLESS_MODE"] == "true"
  @min_highlight_words = ENV["MIN_HIGHLIGHT_WORDS"].to_i
  @max_highlight_words = ENV["MAX_HIGHLIGHT_WORDS"].to_i
end

Instance Attribute Details

#headless_modeObject

Returns the value of attribute headless_mode.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def headless_mode
  @headless_mode
end

#loginObject

Returns the value of attribute login.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def 
  @login
end

#max_highlight_wordsObject

Returns the value of attribute max_highlight_words.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def max_highlight_words
  @max_highlight_words
end

#min_highlight_wordsObject

Returns the value of attribute min_highlight_words.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def min_highlight_words
  @min_highlight_words
end

#passwordObject

Returns the value of attribute password.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def password
  @password
end

#selenium_driverObject

Returns the value of attribute selenium_driver.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def selenium_driver
  @selenium_driver
end

#urlObject

Returns the value of attribute url.



24
25
26
# File 'lib/kindle-notebook.rb', line 24

def url
  @url
end