Class: Rosette::Client::Response
- Inherits:
-
Object
- Object
- Rosette::Client::Response
- Defined in:
- lib/rosette/client/response.rb
Class Method Summary collapse
Class Method Details
.from_api_response(hash_or_array) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/rosette/client/response.rb', line 7 def self.from_api_response(hash_or_array) case hash_or_array when Hash HashResponse.new(hash_or_array) else ArrayResponse.new(hash_or_array) end end |