class Redd::Objects::Thing
A reddit thing. @see www.reddit.com/dev/api#fullnames
Public Instance Methods
==(other)
click to toggle source
Check for equality. @param other The other object. @return [Boolean]
# File lib/redd/objects/thing.rb, line 16 def ==(other) other.is_a?(Thing) && fullname == other.fullname end
fullname()
click to toggle source
@return [String] The fullname of the thing.
# File lib/redd/objects/thing.rb, line 21 def fullname self[:name] || "#{kind}_#{id}" end