Class: LWS::Auth::Account

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/auth.rb

Overview

The account class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#dig, #reload, #rollback, #save

Instance Attribute Details

#appsArray<App>



49
# File 'lib/lws/apps/auth.rb', line 49

has_many :apps

#avatar_urlString



45
# File 'lib/lws/apps/auth.rb', line 45

attribute :avatar_url

#companyCompany



53
# File 'lib/lws/apps/auth.rb', line 53

belongs_to :company

#company_idInteger



57
# File 'lib/lws/apps/auth.rb', line 57

attribute :company_id

#devicesArray<Device>



61
# File 'lib/lws/apps/auth.rb', line 61

has_many :devices

#languageString



66
# File 'lib/lws/apps/auth.rb', line 66

attribute :language

#nameString



71
# File 'lib/lws/apps/auth.rb', line 71

attribute :name

#start_appApp?



75
76
77
# File 'lib/lws/apps/auth.rb', line 75

belongs_to :start_app, class_name: "LWS::Auth::App",
foreign_key: :start_app_id,
uri: "apps/:id"

#start_app_idInteger?



81
# File 'lib/lws/apps/auth.rb', line 81

attribute :start_app_id

#usersArray<User>



85
# File 'lib/lws/apps/auth.rb', line 85

has_many :users