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.
7 8 9 10 |
# File 'lib/deepl/api.rb', line 7 def initialize(configuration) @configuration = configuration configuration.validate! end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
5 6 7 |
# File 'lib/deepl/api.rb', line 5 def configuration @configuration end |