class MikuTwitter::TwitterError

Public Class Methods

[](code) click to toggle source
# File core/lib/mikutwitter/error.rb, line 20
def self.[](code)
  self.errors.find{|e|e.code==code} || MikuTwitter.TwitterError(code)
end
errors() click to toggle source
# File core/lib/mikutwitter/error.rb, line 17
def self.errors
  @errors ||= Set.new end
inherited(klass) click to toggle source
# File core/lib/mikutwitter/error.rb, line 14
def self.inherited(klass)
  self.errors << klass end

Public Instance Methods

code() click to toggle source
# File core/lib/mikutwitter/error.rb, line 24
def code
  self.class.code end