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:



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

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



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

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



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

attribute :gateway

#locationLocation

Returns the location of the reader.

Returns:

  • (Location)

    the location of the reader



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

belongs_to :location

#location_idInteger

Returns the ID of the location of the reader.

Returns:

  • (Integer)

    the ID of the location of the reader



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

attribute :location_id

#nameString

Returns the name of the reader.

Returns:

  • (String)

    the name of the reader



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

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



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

attribute :node

#serial_numberString

Returns the serial number of the reader.

Returns:

  • (String)

    the serial number of the reader



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

attribute :serial_number