Class: Twofishes::Result

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/twofishes/result.rb

Class Method Summary collapse

Class Method Details

.from_response(response) ⇒ Object



4
5
6
7
8
# File 'lib/twofishes/result.rb', line 4

def self.from_response(response)
  response.interpretations.map do |interpretation|
    new(interpretation)
  end
end