class Rubirai::User

Attributes

bot[R]
id[R]
name[R]
remark[R]

Public Class Methods

new(hash, bot = nil) click to toggle source
# File lib/rubirai/objects/user.rb, line 10
def initialize(hash, bot = nil)
  hash = hash.stringify_keys
  @bot = bot
  @id = hash['id']
  @name = hash['name'] || hash['nickname']
  @remark = hash['remark']
end