Class Disqus::Author

  1. lib/disqus/author.rb

Methods

public class

  1. new

public instance

  1. name

Attributes

display_name [R]
has_avatar [R]
id [R]
username [R]

Public class methods

new (id, username, display_name, url, email_hash, has_avatar)
[show source]
# File lib/disqus/author.rb, line 9
    def initialize(id, username, display_name, url, email_hash, has_avatar)
      @id, @username, @display_name, @url, @email_hash, @has_avatar = id, username, display_name, url, email_hash, has_avatar
    end

Public instance methods

name ()

Returns the user’s display_name or username if display_name is blank.

[show source]
# File lib/disqus/author.rb, line 14
    def name
      @display_name.blank? ? @username : @display_name
    end