Class: Iknow::User::Profile
Constant Summary collapse
- ATTRIBUTES =
[:name, :gender, :birthday, :description, :blog_url, :profile_url, :foaf_url, :icon_url]
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Profile
constructor
A new instance of Profile.
Methods inherited from Base
attributes, #attributes, deserialize, #deserialize
Constructor Details
#initialize(params = {}) ⇒ Profile
Returns a new instance of Profile.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/iknow/model/user.rb', line 9 def initialize(params = {}) @name = params[:name] @gender = params[:gender] @birthday = (Date.parse(params[:birthday]) rescue nil) @description = params[:description] @blog_url = params[:blog_url] @profile_url = params[:profile_url] @foaf_url = params[:foaf_url] @icon_url = params[:icon_url] end |