# File lib/twitter/client/user.rb, line 28 def user(id, action = :info) raise ArgumentError, "Invalid user action: #{action}" unless @@USER_URIS.keys.member?(action) raise ArgumentError, "Unable to retrieve followers for user: #{id}" if action.eql?(:followers) and not id.eql?(@login) id = id.to_i if id.is_a?(Twitter::User) response = http_connect {|conn| create_http_get_request(@@USER_URIS[action], :id => id) } bless_models(Twitter::User.unmarshal(response.body)) end