class Ruqqus::Post

Represents a post on Ruqqus.

Public Instance Methods

author_title() click to toggle source

@@!attribute [r] title

@return [String] the post title.
# File lib/ruqqus/types/post.rb, line 40
def author_title
  #noinspection RubyYardReturnMatch,RubyResolve
  @author_title ||= @data[:author_title] ? Title.new(@data[:author_title]) : nil
end
comment_count() click to toggle source
# File lib/ruqqus/types/post.rb, line 45
def comment_count
  @data[:comment_count]
end
domain() click to toggle source
# File lib/ruqqus/types/post.rb, line 49
def domain
  @data[:domain]
end
embed_url() click to toggle source
# File lib/ruqqus/types/post.rb, line 53
def embed_url
  @data[:embed_url]
end
original_guild_name() click to toggle source
# File lib/ruqqus/types/post.rb, line 57
def original_guild_name
  @data[:original_guild_name]
end
thumb_url() click to toggle source
# File lib/ruqqus/types/post.rb, line 61
def thumb_url
  @data[:thumb_url]
end
url() click to toggle source
# File lib/ruqqus/types/post.rb, line 65
def url
  #noinspection RubyYardReturnMatch
  @data[:url]&.empty? ? nil : @data[:url]
end