class WeebSh::Shimakaze

Reputation API

Public Instance Methods

bot(bot) click to toggle source

Makes a class with your bot ID to do requests easier @param bot [String] the ID of the bot @return [ShimakazeBot] the bot class

# File lib/weeb/interfaces/shimakaze.rb, line 10
def bot(bot)
  ShimakazeBot.new(bot, self)
end
get(bot, user) click to toggle source

Get's a user @param bot [String] the ID of the bot @Param user [User, String, resolve_id] the user to get @return [User] the user requested

# File lib/weeb/interfaces/shimakaze.rb, line 18
def get(bot, user)
  user_id = user.resolve_id if user.respond_to?(:resolve_id)
  response = API::Shimakaze.get(self, bot, user_id || user)
  user.patch(response['user']) if user.is_a?(User)
  new User(response['user'], self)
end
settings() click to toggle source

Gets the currentyly used settings @return [ReputationSettings] the user requested

# File lib/weeb/interfaces/shimakaze.rb, line 27
def settings
  new ReputationSettings(response['settings'], self)
end