Class: LWS::Presence::Notification

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

Overview

Note:

This model can only be created via LWS, never retrieved, deleted or updated.

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

#locationLocation

Returns the location the notification is for.

Returns:

  • (Location)

    the location the notification is for



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

belongs_to :location, uri: "locations/:id"

#location_idFixnum

Returns the ID of the location the notification is for.

Returns:

  • (Fixnum)

    the ID of the location the notification is for



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

attribute :location_id

#receiverPerson

Returns the receiver of the notification.

Returns:

  • (Person)

    the receiver of the notification



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

belongs_to :receiver

#receiver_idInteger

Returns the ID of the receiver of the notification.

Returns:

  • (Integer)

    the ID of the receiver of the notification



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

belongs_to :receiver_id

#senderPerson

Returns the sender of the notification.

Returns:

  • (Person)

    the sender of the notification



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

belongs_to :sender

#sender_idInteger

Returns the ID of the receiver of the nofication.

Returns:

  • (Integer)

    the ID of the receiver of the nofication



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

belongs_to :sender_id