Class: CognitiveVision::Face
- Inherits:
-
Object
- Object
- CognitiveVision::Face
- Defined in:
- lib/cognitive_vision/face.rb
Instance Attribute Summary collapse
-
#age ⇒ Object
readonly
Returns the value of attribute age.
-
#gender ⇒ Object
readonly
Returns the value of attribute gender.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Face
constructor
A new instance of Face.
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( = {}) @age = .fetch(:age) @gender = .fetch(:gender) end |
Instance Attribute Details
#age ⇒ Object (readonly)
Returns the value of attribute age.
3 4 5 |
# File 'lib/cognitive_vision/face.rb', line 3 def age @age end |
#gender ⇒ Object (readonly)
Returns the value of attribute gender.
3 4 5 |
# File 'lib/cognitive_vision/face.rb', line 3 def gender @gender end |