Class: Smartfm::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
Constructor Details
#initialize(params = {}) ⇒ Profile
Returns a new instance of Profile.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/smartfm/models/user.rb', line 12 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 |