Class: LWS::Presence::Reader

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

Overview

The reader 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

#companyLWS::Auth::Company

Returns the company the reader belongs to.

Returns:



630
# File 'lib/lws/apps/presence.rb', line 630

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the company the reader belongs to.

Returns:

  • (Integer)

    the ID of the company the reader belongs to



634
# File 'lib/lws/apps/presence.rb', line 634

attribute :company_id

#gatewayInteger

Returns the (32-bit) LCIO gateway ID of the reader.

Returns:

  • (Integer)

    the (32-bit) LCIO gateway ID of the reader



638
# File 'lib/lws/apps/presence.rb', line 638

attribute :gateway

#locationLocation

Returns the location of the reader.

Returns:

  • (Location)

    the location of the reader



642
# File 'lib/lws/apps/presence.rb', line 642

belongs_to :location

#location_idInteger

Returns the ID of the location of the reader.

Returns:

  • (Integer)

    the ID of the location of the reader



646
# File 'lib/lws/apps/presence.rb', line 646

attribute :location_id

#nameString

Returns the name of the reader.

Returns:

  • (String)

    the name of the reader



650
# File 'lib/lws/apps/presence.rb', line 650

attribute :name

#nodeInteger

Returns the (8-bit) LCIO gateway node number of the reader.

Returns:

  • (Integer)

    the (8-bit) LCIO gateway node number of the reader



654
# File 'lib/lws/apps/presence.rb', line 654

attribute :node

#serial_numberString

Returns the serial number of the reader.

Returns:

  • (String)

    the serial number of the reader



658
# File 'lib/lws/apps/presence.rb', line 658

attribute :serial_number