class Komonjo::Model::User

slack user

Attributes

color[RW]
deleted[RW]
has_2fa[RW]
has_files[RW]
id[RW]
is_admin[RW]
is_owner[RW]
is_primary_owner[RW]
is_restricted[RW]
is_ultra_restricted[RW]
name[RW]
profile[RW]

Public Class Methods

create(hash) click to toggle source
# File lib/komonjo/models/user.rb, line 11
def self.create(hash)
  new.tap do |e|
    hash.each { |k, v| e.instance_variable_set("@#{k}", v) }
    e.profile = Profile.create(hash[:profile]) if hash[:profile]
  end
end