Class: DeepL::Requests::Base
- Inherits:
-
Object
- Object
- DeepL::Requests::Base
- Defined in:
- lib/deepl/requests/base.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(api, options = {}) ⇒ Base
constructor
A new instance of Base.
- #request ⇒ Object
Constructor Details
#initialize(api, options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/deepl/requests/base.rb', line 6 def initialize(api, = {}) @api = api @options = end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
4 5 6 |
# File 'lib/deepl/requests/base.rb', line 4 def api @api end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/deepl/requests/base.rb', line 4 def @options end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/deepl/requests/base.rb', line 4 def response @response end |
Instance Method Details
#request ⇒ Object
11 12 13 |
# File 'lib/deepl/requests/base.rb', line 11 def request raise NotImplementedError end |