Class: CognitiveVision::Face

Inherits:
Object
  • Object
show all
Defined in:
lib/cognitive_vision/face.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Face

Returns a new instance of Face.



5
6
7
8
# File 'lib/cognitive_vision/face.rb', line 5

def initialize(options = {})
  @age    = options.fetch(:age)
  @gender = options.fetch(:gender)
end

Instance Attribute Details

#ageObject (readonly)

Returns the value of attribute age.



3
4
5
# File 'lib/cognitive_vision/face.rb', line 3

def age
  @age
end

#genderObject (readonly)

Returns the value of attribute gender.



3
4
5
# File 'lib/cognitive_vision/face.rb', line 3

def gender
  @gender
end