Class: BibleQL::Configuration
- Inherits:
-
Object
- Object
- BibleQL::Configuration
- Defined in:
- lib/bibleql/configuration.rb
Constant Summary collapse
- DEFAULT_API_URL =
"https://bibleql-rails.onrender.com/graphql"- DEFAULT_TRANSLATION =
"eng-web"- DEFAULT_TIMEOUT =
30
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#default_translation ⇒ Object
Returns the value of attribute default_translation.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/bibleql/configuration.rb', line 11 def initialize @api_key = nil @api_url = DEFAULT_API_URL @default_translation = DEFAULT_TRANSLATION @timeout = DEFAULT_TIMEOUT end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/bibleql/configuration.rb', line 5 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
5 6 7 |
# File 'lib/bibleql/configuration.rb', line 5 def api_url @api_url end |
#default_translation ⇒ Object
Returns the value of attribute default_translation.
5 6 7 |
# File 'lib/bibleql/configuration.rb', line 5 def default_translation @default_translation end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/bibleql/configuration.rb', line 5 def timeout @timeout end |