Class: Iknow::User::Profile

Inherits:
Base
  • Object
show all
Defined in:
lib/iknow/model/user.rb

Constant Summary collapse

ATTRIBUTES =
[:name, :gender, :birthday, :description, :blog_url, :profile_url, :foaf_url, :icon_url]

Instance Method Summary collapse

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