@param [ WpUser ] other
# File lib/common/models/wp_user.rb, line 30 def <=>(other) id <=> other.id end
@param [ WpUser ] other
@return [ Boolean ]
# File lib/common/models/wp_user.rb, line 37 def ==(other) self === other end
@param [ WpUser ] other
@return [ Boolean ]
# File lib/common/models/wp_user.rb, line 44 def ===(other) id === other.id && login === other.login end
@return [ Array<Symbol> ]
# File lib/common/models/wp_user.rb, line 10 def allowed_options; [:id, :login, :display_name, :password] end
@return [ String ]
# File lib/common/models/wp_user.rb, line 22 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 13 def uri if id return @uri.merge("?author=#{id}") else raise 'The id is nil' end end
Generated with the Darkfish Rdoc Generator 2.