@param [ WpUser ] other
# File lib/common/models/wp_user.rb, line 37 def <=>(other) id <=> other.id end
@param [ WpUser ] other
@return [ Boolean ]
# File lib/common/models/wp_user.rb, line 44 def ==(other) self === other end
@param [ WpUser ] other
@return [ Boolean ]
# File lib/common/models/wp_user.rb, line 51 def ===(other) id === other.id && login === other.login end
@return [ Array<Symbol> ]
# File lib/common/models/wp_user.rb, line 12 def allowed_options; [:id, :login, :display_name, :password] end
@return [ String ]
# File lib/common/models/wp_user.rb, line 24 def login_url @uri.merge('wp-login.php').to_s end
@return [ String ]
# File lib/common/models/wp_user.rb, line 29 def to_s s = "#{id}" s += " | #{login}" if login s += " | #{display_name}" if display_name s end
@return [ URI ] The uri to the auhor page
# File lib/common/models/wp_user.rb, line 15 def uri if id return @uri.merge("?author=#{id}") else raise 'The id is nil' end end