Class: Socialmux::AuthMapper::Facebook

Inherits:
Base
  • Object
show all
Defined in:
lib/socialmux/auth_mapper/facebook.rb

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#initialize, #url

Constructor Details

This class inherits a constructor from Socialmux::AuthMapper::Base

Instance Method Details

#genderObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/socialmux/auth_mapper/facebook.rb', line 4

def gender
  case data.extra.raw_info["gender"]
  when "male"
    Gender::MALE
  when "female"
    Gender::FEMALE
  else
    nil
  end
end