Class: LWS::Auth::UsageReport

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

Overview

The usage report 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

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

Instance Attribute Details

#companyCompany

Returns the company that the usage report is for.

Returns:

  • (Company)

    the company that the usage report is for



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

belongs_to :company

#company_idInteger

Returns the ID of the company that the usage report is for.

Returns:

  • (Integer)

    the ID of the company that the usage report is for



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

attribute :company_id

#objectString?

Returns the (partial) HTML document of the usage report. (The value is nil until the report has been successfully generated.).

Returns:

  • (String, nil)

    the (partial) HTML document of the usage report. (The value is nil until the report has been successfully generated.)



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

attribute :object