Class: EasyAnki::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/easy-anki.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

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_idObject

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_languageObject

Returns the value of attribute translation_language.



15
16
17
# File 'lib/easy-anki.rb', line 15

def translation_language
  @translation_language
end