Class: EasyAnki::Configuration
- Inherits:
-
Object
- Object
- EasyAnki::Configuration
- Defined in:
- lib/easy-anki.rb
Instance Attribute Summary collapse
-
#openai_access_token ⇒ Object
Returns the value of attribute openai_access_token.
-
#openai_organization_id ⇒ Object
Returns the value of attribute openai_organization_id.
-
#translation_language ⇒ Object
Returns the value of attribute translation_language.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/easy-anki.rb', line 17 def initialize @openai_access_token = ENV["OPENAI_ACCESS_TOKEN"] @openai_organization_id = ENV["OPENAI_ORGANIZATION_ID"] @translation_language = ENV["TRANSLATION_LANGUAGE"] end |
Instance Attribute Details
#openai_access_token ⇒ Object
Returns the value of attribute openai_access_token.
15 16 17 |
# File 'lib/easy-anki.rb', line 15 def openai_access_token @openai_access_token end |
#openai_organization_id ⇒ Object
Returns the value of attribute openai_organization_id.
15 16 17 |
# File 'lib/easy-anki.rb', line 15 def openai_organization_id @openai_organization_id end |
#translation_language ⇒ Object
Returns the value of attribute translation_language.
15 16 17 |
# File 'lib/easy-anki.rb', line 15 def translation_language @translation_language end |