Socialmetrica/Socialmetrica.package/NitterUser.class/instance/id.st

7 lines
183 B
Smalltalk

accessing
id
^ id ifNil: [
self profileImageUrl
ifNil: [ id := 0 ]
ifNotNil: [ id := (self profileImageUrl asUrl segments select: [ :each | each isAllDigits ]) first. ]
]