Class: DeepL::API
- Inherits:
-
Object
- Object
- DeepL::API
- Defined in:
- lib/deepl/api.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Instance Method Summary collapse
-
#initialize(configuration) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(configuration) ⇒ API
Returns a new instance of API.
5 6 7 8 |
# File 'lib/deepl/api.rb', line 5 def initialize(configuration) @configuration = configuration configuration.validate! end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/deepl/api.rb', line 3 def configuration @configuration end |