Class: DeepL::Resources::Base
- Inherits:
-
Object
- Object
- DeepL::Resources::Base
- Defined in:
- lib/deepl/resources/base.rb
Direct Known Subclasses
DocumentHandle, DocumentTranslationStatus, Glossary, Language, LanguagePair, Text, Usage
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(request, response) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/deepl/resources/base.rb', line 11 def initialize(request, response) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
9 10 11 |
# File 'lib/deepl/resources/base.rb', line 9 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/deepl/resources/base.rb', line 9 def response @response end |