Class: DaFace::Datasift::Demographic
- Inherits:
-
Object
- Object
- DaFace::Datasift::Demographic
- Defined in:
- lib/da_face/datasift/demographic.rb
Instance Attribute Summary collapse
-
#gender ⇒ Object
readonly
Returns the value of attribute gender.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Demographic
constructor
A new instance of Demographic.
Constructor Details
#initialize(data = {}) ⇒ Demographic
Returns a new instance of Demographic.
6 7 8 |
# File 'lib/da_face/datasift/demographic.rb', line 6 def initialize data={} @gender = data[:gender] end |
Instance Attribute Details
#gender ⇒ Object (readonly)
Returns the value of attribute gender.
4 5 6 |
# File 'lib/da_face/datasift/demographic.rb', line 4 def gender @gender end |