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



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

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



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

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.)



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

attribute :object