class Rubirai::Group
The group
@!attribute [r] bot
@return [Bot] the bot
@!attribute [r] id
@return [Integer] group id
@!attribute [r] name
@return [String] group name
@!attribute [r] permission
@return [String] the group permission of the bot. See {Permission}
Attributes
bot[R]
id[R]
name[R]
permission[R]
Public Class Methods
new(hash, bot = nil)
click to toggle source
@param hash [Hash{String => Object}] @param bot [Rubirai::Bot, nil]
# File lib/rubirai/objects/group.rb, line 19 def initialize(hash, bot = nil) hash = hash.stringify_keys @bot = bot @id = hash['id'] @name = hash['name'] @permission = hash['permission'] end