class CognitiveVision::ImageFeature::Face
Public Instance Methods
key()
click to toggle source
# File lib/cognitive_vision/image_feature/face.rb, line 4 def key 'faces' end
parse(response)
click to toggle source
# File lib/cognitive_vision/image_feature/face.rb, line 8 def parse(response) response[key].map { |face| CognitiveVision::Face.new(gender: face['gender'], age: face['age']) } end