Class: Rubirai::Group
- Inherits:
-
Object
- Object
- Rubirai::Group
- Defined in:
- lib/rubirai/objects/group.rb
Defined Under Namespace
Classes: Permission
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permission ⇒ Object
readonly
Returns the value of attribute permission.
Instance Method Summary collapse
-
#initialize(hash, bot = nil) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(hash, bot = nil) ⇒ Group
Returns a new instance of Group.
9 10 11 12 13 14 15 |
# File 'lib/rubirai/objects/group.rb', line 9 def initialize(hash, bot = nil) hash = hash.stringify_keys @bot = bot @id = hash['id'] @name = hash['name'] @permission = hash['permission'] end |
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
5 6 7 |
# File 'lib/rubirai/objects/group.rb', line 5 def bot @bot end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/rubirai/objects/group.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/rubirai/objects/group.rb', line 5 def name @name end |
#permission ⇒ Object (readonly)
Returns the value of attribute permission.
5 6 7 |
# File 'lib/rubirai/objects/group.rb', line 5 def @permission end |