class Discorb::DiscordModel
@abstract Represents Discord model.
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/discorb/common.rb, line 20 def ==(other) if respond_to?(:id) && other.respond_to?(:id) id == other.id else super end end
eql?(other)
click to toggle source
# File lib/discorb/common.rb, line 16 def eql?(other) self == other end
hash()
click to toggle source
# File lib/discorb/common.rb, line 33 def hash @id.hash end
inspect()
click to toggle source
@!visibility private
Calls superclass method
# File lib/discorb/common.rb, line 29 def inspect super end