Class: LWS::Auth::App

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

Overview

The app class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#account_idsArray<Integer>

Returns the IDs of the accounts using the app.

Returns:

  • (Array<Integer>)

    the IDs of the accounts using the app



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

attribute :account_ids

#accountsArray<Account>

Returns the accounts using the app.

Returns:

  • (Array<Account>)

    the accounts using the app



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

has_many :accounts

#app_keyString

Returns the (unique) internal key used for the app.

Returns:

  • (String)

    the (unique) internal key used for the app



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

attribute :app_key

#autoassignBoolean

Returns whether the app is automatically assigned to a newly created account and/or company.

Returns:

  • (Boolean)

    whether the app is automatically assigned to a newly created account and/or company



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

attribute :autoassign

#companiesArray<Company>

Returns the companies using the app.

Returns:

  • (Array<Company>)

    the companies using the app



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

has_many :companies

#company_idsArray<Integer>

Returns the IDS of the companies using the app.

Returns:

  • (Array<Integer>)

    the IDS of the companies using the app



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

attribute :company_ids

#iconString

Returns the icon ID/name of the app.

Returns:

  • (String)

    the icon ID/name of the app



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

attribute :icon

#license_idsArray<Integer>

Returns the IDs of the licenses that provide access to the app.

Returns:

  • (Array<Integer>)

    the IDs of the licenses that provide access to the app



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

attribute :license_ids

#licensesArray<License>

Returns the licenses that provide access to the app.

Returns:

  • (Array<License>)

    the licenses that provide access to the app



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

has_many :licenses

#nameString

Returns the name of the app.

Returns:

  • (String)

    the name of the app



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

attribute :name

#order_priorityInteger?

Returns the order priority of the app with respect to the other apps.

Returns:

  • (Integer, nil)

    the order priority of the app with respect to the other apps



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

attribute :order_priority

#secretString

Returns the shared secred used for logging in to the app.

Returns:

  • (String)

    the shared secred used for logging in to the app



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

attribute :secret

#urlString

Returns the web location (URL) of the app.

Returns:

  • (String)

    the web location (URL) of the app



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

attribute :url