Class: BibleQL::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



5
6
7
# File 'lib/bibleql/configuration.rb', line 5

def api_key
  @api_key
end

#api_urlObject

Returns the value of attribute api_url.



5
6
7
# File 'lib/bibleql/configuration.rb', line 5

def api_url
  @api_url
end

#default_translationObject

Returns the value of attribute default_translation.



5
6
7
# File 'lib/bibleql/configuration.rb', line 5

def default_translation
  @default_translation
end

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/bibleql/configuration.rb', line 5

def timeout
  @timeout
end