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



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

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



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

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



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

attribute :object