Class: LanguagecloudSdl::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- LanguagecloudSdl::Response
- Extended by:
- Forwardable
- Defined in:
- lib/languagecloud-sdl/response.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
13 14 15 16 |
# File 'lib/languagecloud-sdl/response.rb', line 13 def initialize(response) super(response) @parsed = ActiveSupport::InheritableOptions.new(JSON.parse(response.body).with_indifferent_access) end |