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:



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

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



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

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



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

attribute :gateway

#locationLocation

Returns the location of the reader.

Returns:

  • (Location)

    the location of the reader



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

belongs_to :location

#location_idInteger

Returns the ID of the location of the reader.

Returns:

  • (Integer)

    the ID of the location of the reader



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

attribute :location_id

#nameString

Returns the name of the reader.

Returns:

  • (String)

    the name of the reader



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

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



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

attribute :node

#serial_numberString

Returns the serial number of the reader.

Returns:

  • (String)

    the serial number of the reader



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

attribute :serial_number