struct PlaceOS::Client::API::Models::User

Overview

Metadata about the current user

Defined in:

placeos/api/models/user.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct PlaceOS::Client::API::Models::Response

new(pull : JSON::PullParser) new

Macros inherited from module PlaceOS::Client::API::Models::Response::Init

__add_initialize__ __add_initialize__

Constructor Detail

def self.new(pull : JSON::PullParser) #

Metadata about the current user


[View source]

Instance Method Detail

def associated_metadata : Hash(String, Metadata) | Nil #

[View source]
def authority_id : String #

[View source]
def building : String | Nil #

[View source]
def card_number : String | Nil #

[View source]
def country : String | Nil #

[View source]
def created_at : Time #

[View source]
def deleted : Bool | Nil #

[View source]
def department : String | Nil #

[View source]
def email : String #

[View source]
def email_digest : String #

[View source]
def first_name : String | Nil #

[View source]
def groups : Array(String) | Nil #

[View source]
def id : String #

[View source]
def image : String | Nil #

[View source]
def last_name : String | Nil #

[View source]
def locatable : Bool | Nil #

[View source]
def login_name : String | Nil #

[View source]
def metadata : String | Nil #

[View source]
def misc : String | Nil #

[View source]
def name : String #

[View source]
def nickname : String | Nil #

[View source]
def phone : String | Nil #

[View source]
def preferred_language : String | Nil #

[View source]
def staff_id : String | Nil #

[View source]
def support : Bool | Nil #

[View source]
def sys_admin : Bool | Nil #

Admin only fields


[View source]
def ui_theme : String | Nil #

[View source]
def work_overrides : Hash(String, PlaceOS::Model::User::WorktimePreference) #

[View source]
def work_preferences : Array(PlaceOS::Model::User::WorktimePreference) #

[View source]