Class: KindleNotebook::Configuration
- Inherits:
-
Object
- Object
- KindleNotebook::Configuration
- Defined in:
- lib/kindle-notebook.rb,
lib/kindle_notebook/configuration.rb
Instance Attribute Summary collapse
-
#headless_mode ⇒ Object
Returns the value of attribute headless_mode.
-
#login ⇒ Object
Returns the value of attribute login.
-
#max_highlight_words ⇒ Object
Returns the value of attribute max_highlight_words.
-
#min_highlight_words ⇒ Object
Returns the value of attribute min_highlight_words.
-
#password ⇒ Object
Returns the value of attribute password.
-
#selenium_driver ⇒ Object
Returns the value of attribute selenium_driver.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_mode ⇒ Object
Returns the value of attribute headless_mode.
24 25 26 |
# File 'lib/kindle-notebook.rb', line 24 def headless_mode @headless_mode end |
#login ⇒ Object
Returns the value of attribute login.
24 25 26 |
# File 'lib/kindle-notebook.rb', line 24 def login @login end |
#max_highlight_words ⇒ Object
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_words ⇒ Object
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 |
#password ⇒ Object
Returns the value of attribute password.
24 25 26 |
# File 'lib/kindle-notebook.rb', line 24 def password @password end |
#selenium_driver ⇒ Object
Returns the value of attribute selenium_driver.
24 25 26 |
# File 'lib/kindle-notebook.rb', line 24 def selenium_driver @selenium_driver end |
#url ⇒ Object
Returns the value of attribute url.
24 25 26 |
# File 'lib/kindle-notebook.rb', line 24 def url @url end |