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:



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

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



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

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



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

attribute :gateway

#locationLocation

Returns the location of the reader.

Returns:

  • (Location)

    the location of the reader



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

belongs_to :location

#location_idInteger

Returns the ID of the location of the reader.

Returns:

  • (Integer)

    the ID of the location of the reader



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

attribute :location_id

#nameString

Returns the name of the reader.

Returns:

  • (String)

    the name of the reader



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

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



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

attribute :node

#serial_numberString

Returns the serial number of the reader.

Returns:

  • (String)

    the serial number of the reader



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

attribute :serial_number