Class: DeepL::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/deepl/resources/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (readonly)

Returns the value of attribute request.



9
10
11
# File 'lib/deepl/resources/base.rb', line 9

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/deepl/resources/base.rb', line 9

def response
  @response
end