Class: DaFace::Datasift::Demographic

Inherits:
Object
  • Object
show all
Defined in:
lib/da_face/datasift/demographic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#genderObject (readonly)

Returns the value of attribute gender.



4
5
6
# File 'lib/da_face/datasift/demographic.rb', line 4

def gender
  @gender
end