class Quickblox::Models::User

Public Class Methods

build(hash) click to toggle source
# File lib/models.rb, line 38
def self.build(hash)
  new(
    id: hash.fetch("id"),
    full_name: hash.fetch("full_name"),
    email: hash.fetch("email"),
    login: hash.fetch("login"),
    phone: hash.fetch("phone"),
    tags: hash.fetch("user_tags"),
    custom_data: hash.fetch("custom_data")
  )
end