Class: Twitter::User
- Inherits:
-
Object
- Object
- Twitter::User
- Defined in:
- lib/twittbot/gem_ext/twitter/user.rb
Instance Method Summary collapse
-
#admin? ⇒ Boolean
Whether the current user is a botadmin.
Instance Method Details
#admin? ⇒ Boolean
Returns whether the current user is a botadmin.
4 5 6 7 |
# File 'lib/twittbot/gem_ext/twitter/user.rb', line 4 def admin? return false if $bot.nil? or $bot[:config].nil? $bot[:config][:admins].include? self.id end |