Class: LWS::Auth::App

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

Overview

The app class

Instance Attribute Summary collapse

Instance Attribute Details

#accountsArray<Account>

Returns the accounts using the app.

Returns:

  • (Array<Account>)

    the accounts using the app



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

has_many :accounts

#app_keyString

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

Returns:

  • (String)

    the (unique) internal key used for the app



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

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



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

attribute :autoassign

#companiesArray<Company>

Returns the companies using the app.

Returns:

  • (Array<Company>)

    the companies using the app



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

has_many :companies

#created_atString (readonly)

Returns the timestamp of when the app was created.

Returns:

  • (String)

    the timestamp of when the app was created



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

attribute :created_at

#iconString

Returns the icon ID/name of the app.

Returns:

  • (String)

    the icon ID/name of the app



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

attribute :icon

#idFixnum (readonly)

Returns the (unique) ID of the account.

Returns:

  • (Fixnum)

    the (unique) ID of the account



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

attribute :id

#licensesArray<License>

Returns the licenses that provide access to the app.

Returns:

  • (Array<License>)

    the licenses that provide access to the app



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

has_many :licenses

#nameString

Returns the name of the app.

Returns:

  • (String)

    the name of the app



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

attribute :name

#order_priorityFixnum?

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

Returns:

  • (Fixnum, nil)

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



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

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



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

attribute :secret

#updated_atString (readonly)

Returns the timestamp of when the app was last updated.

Returns:

  • (String)

    the timestamp of when the app was last updated



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

attribute :updated_at

#urlString

Returns the web location (URL) of the app.

Returns:

  • (String)

    the web location (URL) of the app



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

attribute :url