Browse files

added new Friend's type (third-party authentication)

  • Loading branch information...
1 parent 9d0beab commit f16330f3b78a318c876f0d81c1f4bf3e19abf475 @unloved unloved committed Apr 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/livejournal/friends.rb
View
3 lib/livejournal/friends.rb
@@ -33,7 +33,7 @@ class Friend
attr_accessor :background, :foreground
# bitfield of friend groups this friend is a member of
attr_accessor :groupmask
- # friend type. possible values: :community, :news, :syndicated, :shared, :user
+ # friend type. possible values: :community, :news, :syndicated, :shared, :identity, :user
attr_accessor :type
def initialize
@username = nil
@@ -55,6 +55,7 @@ def from_request(req)
when 'news'; :news
when 'syndicated'; :syndicated
when 'shared'; :shared
+ when 'identity'; :identity
when nil; :user
else raise LiveJournal::Request::ProtocolException.new(
"unknown friend type: #{req['type']}")

0 comments on commit f16330f

Please sign in to comment.