144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
# File 'lib/nelumba/atom/author.rb', line 144
def to_canonical
organization = self.poco_organization
organization = organization.to_canonical if organization
address = self.poco_address
address = address.to_canonical if address
account = self.poco_account
account = account.to_canonical if account
ext_name = self.poco_name
ext_name = ext_name.to_canonical if ext_name
Nelumba::Person.new(:uid => self.poco_id,
:extended_name => ext_name,
:organization => organization,
:address => address,
:account => account,
:gender => self.poco_gender,
:note => self.poco_note,
:nickname => self.poco_nickname,
:display_name => self.poco_displayName,
:preferred_username => self.poco_preferredUsername,
:updated => self.poco_updated,
:published => self.poco_published,
:birthday => self.poco_birthday,
:anniversary => self.poco_anniversary,
:uri => self.uri,
:email => self.email,
:name => self.name)
end
|