Class: YandexTranslator::Configuration
- Inherits:
-
Object
- Object
- YandexTranslator::Configuration
- Defined in:
- lib/yat/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#chunk_size ⇒ Object
Returns the value of attribute chunk_size.
-
#host ⇒ Object
Returns the value of attribute host.
-
#json_path ⇒ Object
Returns the value of attribute json_path.
-
#maximum_requests ⇒ Object
Returns the value of attribute maximum_requests.
-
#port ⇒ Object
Returns the value of attribute port.
-
#xml_path ⇒ Object
Returns the value of attribute xml_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 |
# File 'lib/yat/config.rb', line 14 def initialize @chunk_size = 10000 @maximum_requests = 10 @api_key = nil @host = "https://translate.yandex.net" @json_path = '/api/v1.5/tr.json' @xml_path = '/api/v1.5/tr' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def api_key @api_key end |
#chunk_size ⇒ Object
Returns the value of attribute chunk_size.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def chunk_size @chunk_size end |
#host ⇒ Object
Returns the value of attribute host.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def host @host end |
#json_path ⇒ Object
Returns the value of attribute json_path.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def json_path @json_path end |
#maximum_requests ⇒ Object
Returns the value of attribute maximum_requests.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def maximum_requests @maximum_requests end |
#port ⇒ Object
Returns the value of attribute port.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def port @port end |
#xml_path ⇒ Object
Returns the value of attribute xml_path.
12 13 14 |
# File 'lib/yat/config.rb', line 12 def xml_path @xml_path end |